![]() ![]() Set the Holding Register Address parameter to 0. Select the Read Holding register option in the Function parameter. To perform the 16-bit read operation on the input register, configure these parameters in the MODBUS TCP/IP Master Read Block Parameters dialog box. This data is valid only if the status port value is 1, indicating a successful read operation and the presence of valid data on its data port. ![]() Similarly, the data read from the input registers is low when the data read from the holding register corresponding to the pulse generator output is high. The data read from the input registers is high when the data read from the holding register corresponding to the pulse generator output is low. The default value is 0.Ĭonfigure MODBUS TCP/IP Master Read Block for Input Registers To notify the master to read data from one discrete input register, specify its address in the Discrete Input Address parameter. Select the Read Discrete input option in the Function parameter. To perform the 1-bit read operation on the discrete input register, configure these parameters in the MODBUS TCP/IP Master Read Block Parameters dialog box. A lamp indicator is used to signify the 1-bit read from the discrete input register. This data is valid only if the Status port value is 1, indicating a successful read operation and the presence of valid data on its data port. After the count value of 15, the output from the block is reset to 0. The data read from the discrete input registers is high when the count value from the free-running counter is greater than or equal to 8. The default value is 0.Ĭonfigure MODBUS TCP/IP Master Read Block for Discrete Input Registers To notify the master to read data from coil registers, specify its address in the Holding Register Address parameter. Select the Read Multiple Holding registers option in the Function parameter. The outputs from the free-running counter and the pulse generator are multiplexed and fed as an input to the MODBUS TCP/IP Master Write block.Ĭonfigure these parameters in the MODBUS TCP/IP Master Write Block Parameters dialog box to write data from the free-running counter and pulse generator to the holding registers. To perform the 16-bit master write operation on the holding registers, this example uses a counter whose count value increments from 0 to 15 and a pulse generator. The default positions of the slider switches are Off, On, and On.Ĭonfigure MODBUS TCP/IP Master Write Blocks for Holding Registers The default value is 0.Įnter 3 in the Number of Coils parameter. To notify the master to write data to two coil registers, specify the address of the first coil in the Coil Address parameter. Select the Write Multiple Coils option in the Function parameter. In this model, the parameter is set to 172.19.66.177. Enter the unique IP address of the slave device in the Slave address parameter. ![]()
0 Comments
Leave a Reply. |