欢迎图片

How to set write-only for Macro script?

Last modified by Leo Wei on 2022/06/08 04:57

All addresses are read and write by default in Macro code. Whatever your code whether is read from the external communication address or not.

But in many situation, we just need write-only for those external addresses.

In this case, if we do the read and write for these. We would get communication failed.

So following is introduce how to set this in PIStudio:

Enable read through when you just need write-only.

HMI internal registers

For example:

1
2
3
4
5
6
@W_HSW134=1

@W_1:48193=1
@W_2:48193=1

@W_HSW134=0