ACS_COM_MOD_RTU_GEN_WRITE_N_PRM Write N Parameters to a Generic MODBUS RTU DeviceΒΆ

../_images/42dbed4f48bef34e0a3313900049305b

Function Block Information

Available from PLC runtime system: V1.3.2
Included in library: ACSDrivesComModRTU_AC500_V20.lib
Function Block with historical values

Function Bock ACS_COM_MOD_RTU_GEN_WRITE_N_PRM writes n data to the slave device. The number of data to be written is specified at the input NB. The first address is specified at the input ADDR. The values of the data that should be written must be stored in the PLC memory area, defined at the input DATA. A successful writing is indicated by DONE = TRUE and ERR = FALSE.

To initiate a write job the EN input must be given a rising edge. (FALSE -> TRUE).

After termination of this job, even if it was not successful, a next writing can once again only be started with a rising edge at EN input.

The MODBUS job is started from the ACS_COM_MOD_RTU_GEN Function Block which is connected to the same SLAVE_DATA variable.

The slave address of the device to which the data is written is specified at this ACS_COM_MOD_RTU_GEN block.

If the input values are valid, a request to perform a MODBUS RTU job is send to the ACS_COM_MOD_RTU_GEN block via the SLAVE_DATA variable.

If at least 1 input is invalid, no job is generated and the error is displayed at the outputs ERR and ERNO instead.