Step Comments
The array below summarizes the programming steps in the example:
Step Number |
Step Description |
---|---|
0 |
Initial state of function Wait for change to 1 of |
5 |
If no command is in progress on the serial port, a command is sent to change the serial port from Modbus mode to character mode. Go to step 10. |
10 |
Read status of serial port.
|
15 |
Sending a dial command to the modem
via the Go to step 20. |
20 |
If the result of |
25 |
If the result of |
30 |
If the modem responds then go to
step 35 otherwise go to step 65 with |
35 |
Initialization of OUT_IN_MBUS block parameters. Go to step 40. |
40 |
|
45 |
Sending a disconnection command
to the modem using the Go to step 50. |
50 |
If the result of |
55 |
If no command is in progress on the serial port, a command is sent to change the serial port from character mode to Modbus mode. Go to step 60. |
60 |
Read status of serial port.
|
65 |
Return to step 0 (initial function
state) and bit |