Procedure to Follow
The array below shows the procedure to follow for programming the OUT_IN_MBUS
block.
Step |
Action |
details |
---|---|---|
1 |
Preparing the communication port |
|
2 |
Initialization of parameters |
Initialize the DFB block input parameters. It is not useful to repeat this operation for each PLC cycle. |
3 |
|
|
4 |
Resetting the communication port |
Writing the Command Words to a Communication Port
The following steps should be executed
to send a WRITE_CMD
to a communication port:
Step |
Action |
---|---|
1 |
Test to determine whether any command is pending.
|
2 |
Assign the command word.
|
3 |
Send the command.
|
In the example that follows, we use the corresponding IODDT interface to communicate with the serial port channel.