76
9.3.6 SLC-5/05 Example: Reading and Writing Multiple MSG Instructions
Often times, applications may need to both read data from and write data to the inverter. To accomplish
this task, multiple MSG instructions will need to be implemented in the PLC program. The configuration
and execution for implementing multiple MSG instructions is in general identical to that required for
implementing just one MSG instruction. Each MSG instruction will require its own message control file.
Figure 77 shows an example of two MSG instructions, one for reading and one for writing. It is evident
from this logic that N20 and N21 are the two independent message control files created for these
instructions. Note that the “Read/Write” field of each of the MSG instructions is set according to their
function.
Figure 77: Reading and Writing via MSG Instructions
Figure 78 shows the configuration details of the “write” MSG instruction. Note that this instruction will
only be writing to one inverter register: namely, register 5 (parameter 00.04 / frequency command). The
source Data Table Address in this case is N18:30.
Figure 78: MSG Configuration for Writing