Skip to main content

4.2.9. SW220~249 Relay - GE变量

4.2.9. SW220~249 Relay - GE变量

 

l   代码

1101~1128

GE1 ~ GE128

GE变量的index为代码– 1000

 

 

l   读取/写入

读取

继续更新

GE[index] ~ GE[index+3]4byte读取为低位字、高位字。

写入

当系统变量index值变更时(须为31001~31128)将已输入在数据低位字中的值转换为(类型转换为)byte并设置在GE变量中。

 

 

l   示例(例如,当使用slot1slot2)

SW220

31001(dec)

Index:GE设置(30000-based)

SW221

2(hex)

GE1中设置2

SW222

-

SW223

31004(dec)

SW224

37(hex)

GE4中设置55

SW225

-

SW220

1001(dec)

Index:GE1~读取(0-based)

SW221

0002(hex)

SW222

3700(hex)

SW223

1002(dec)

Index:GE2~读取(0-based)

SW224

0000(hex)

SW225

0037(hex)