The following logic can be used to transfer a %M variable over Modbus TCP/IP using a WRITE_VAR block.
The BOOL_TO block is used to convert the %M type BOOL to the EMIS variable of type INT.
The BOOL_TO block is used to convert the %M type BOOL to the EMIS variable of type INT.