SIMATIC Configuration Examples

"TAG-F32", IDX_FLOAT, "CFG(_plc(4)plc_ _reg(40010)reg_ _dir(R)dir_ _g(0.5)g_ _b(25)b_)" represents the following required action:

Read the 16bit register content from Holding Register 40010 from PLC with network address of 4 and if the raw value received is 100 then update the IDXrtdb slot whose name is TAG-F32 (and type if float ie. analogue) such that the value of TAG-F32 = bias + raw value * gain = 25+ 100*0.5 = 75

"TAG-F32-W", IDX_FLOAT, "CFG(_plc(9)plc_ _reg(40050)reg_ _dir(W)dir_ _g(0.5)g_ _b(25)b_)" represents the following required action:

Update the content of 16 bit Holding Register 40050 in PLC with network address of 9 such that if the engineering value in IDXrtdb slot TAG-F32-W is 75 then the raw value transmitted to the PLC will be 100 obtain from raw value = (slot value - bias)/gain = (75-25)/0.5 = 100.