USER MANUAL – Z-TWS4/Z-PASS2-S/S6001-RTU
186
The MODEM_RESET FB sends an AT reset command to the GSM modem and waits for a
specified time.
When first called, the FB runs a process which starts sending the command;
on subsequent calls, it only checks if the process has finished its job.
The FB has the following input parameters:
- SERIAL_PORT : this parameter is not used (it is still present only for
compatibility reasons); it can be set to '' (empty string)
- COMMAND : reset AT command to be sent;
if left empty, the "AT+CFUN=1,1" command will be sent
- WAIT : wait duration, in seconds, after sending the command;
valid values are: [30..300]
- @ENABLE : TRUE -> FB is executed
FALSE -> FB is skipped
The FB has the following output parameter:
- RESULT : -2, when called with ENABLE=FALSE
-1, in case of any failure
0, if the process is still running
1, if the process has successfully finished
2, if timeout has expired (timeout = WAIT + 5 seconds)
4, if PPP is active, on Z-MINIRTU
5, if MODEM_RESET FB is already running
Please note that the MODEM_RESET FB can't be successfully executed while the PPP
connection is active, on Z-MINIRTU.
Also note that, when MODEM_RESET FB is running, all other "modem related" FBs
(PPP_CONNECT, SEND_SMS, GET_SMS, MODEM_CTRL and MODEM_RESET itself) are
rejected.
19.1.12
PPP_CONNECT
Summary of Contents for S6001-RTU
Page 35: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 35 Then import the Library menu Tools Import...
Page 68: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 68...
Page 76: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 76...
Page 86: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 86...
Page 87: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 87...
Page 121: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 121...
Page 133: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 133...
Page 162: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 162 Select the mbus_shm csv file...