TD240 Modbus by C code
Posted: 11/04/2019, 19:05
Hello
I already have communication by RS485 with other device, by Ladder code.
I want to change the slave address by a screen on TD240, now im communicating the PLCs by ladder code, but i tried to communicate by C code and it does not works, im having troubles using the following instruction:
I want to send the variable 150 of the TD240 to the variable 150 of the EPL101 (Modbus address: 1150)
It already works with the coil EXP_ of ladder program, but i want to make it in C so i can make a template for any application and just change the device address in field easly by a screen.
I already have communication by RS485 with other device, by Ladder code.
I want to change the slave address by a screen on TD240, now im communicating the PLCs by ladder code, but i tried to communicate by C code and it does not works, im having troubles using the following instruction:
I want to send the variable 150 of the TD240 to the variable 150 of the EPL101 (Modbus address: 1150)
It already works with the coil EXP_ of ladder program, but i want to make it in C so i can make a template for any application and just change the device address in field easly by a screen.