Product FAQs

Ask a Question

How to use Write_Var block with BMXNOC0401 communication module?

See below an example of Write_Var block for writing Modbus slave data through ETG100 gateway.​

In ADDM block '0.3.0{192.168.1.21}1.TCP.MBS' where
Rack = 0
NOC module slot address = 3
Channel = 0
Gateway IP address = 192.168.1.21
Modbus slave id = 1
Message type = TCP
Protocol = Modbus​(MBS)


In Write_Var block
OBJ: String declaring the type of object to write (%MW or %M)
Num: Index of the first object to write
NB: Number of objects to write
EMIS: Data to write
For more details check attached unity help documents.​


 
Was this helpful?
What can we do to improve the information ?