序号 | 地址 | 符号 | 变量类型 | 数据类型 | 注释 |
---|---|---|---|---|---|
1 | LW0 | INT_IN | IN | INT | |
2 | LD2 | Ratio | IN | REAL | |
3 | IN | ||||
4 | IN OUT | ||||
5 | LD6 | REAL_OUT | OUT | REAL | |
6 | OUT | ||||
7 | LD10 | REAL_Temp | TEMP | REAL | |
8 | LD14 | DINT_Temp | TEMP | DINT |
LD Always_On:SM0.0
ITD #INT_IN:LW0, #DINT_Temp:LD14
AENO
DTR #DINT_Temp:LD14, #REAL_Temp:LD10
AENO
MOVR #Ratio:LD2, #REAL_OUT:LD6
*R #REAL_Temp:LD10, #REAL_OUT:LD6