USER MANUAL – Z-TWS4/Z-PASS2-S/S6001-RTU
187
The PPP_CONNECT FB performs PPP connection setup or release, by means of a
GPRS/UMTS modem.
When first called, it runs a process which starts the connection setup or
release; on subsequent calls, it only checks if the process has finished its
job.
The FB has the following input parameters:
- CONNECT : TRUE -> connection setup
FALSE -> connection release
- SERIAL_PORT : this parameter is not used (it is still present only for
compatibility reasons); it can be set to '' (empty string)
- GPRS_APN : GPRS Access Point Name (as given by the mobile operator);
if this parameter is left empty, "Automatic APN" functionality
is activated
- USERNAME : username required for authentication
(it can be empty, if authentication is not required);
not used with "Automatic APN" functionality
- PASSWORD : password required for authentication
(it can be empty, if authentication is not required)
not used with "Automatic APN" functionality
- TIMEOUT : timeout, in seconds
- @ENABLE : TRUE -> FB is executed
FALSE -> FB is skipped
When CONNECT=FALSE, GPRS_APN, USERNAME and PASSWORD parameters can be empty.
The FB has the following output parameters:
- 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
5, if MODEM_RESET FB is running
- LOCAL_IP : IP address assigned to the PPP network interface (only if
RESULT=1, when CONNECT=TRUE)
- REMOTE_IP : IP address of the remote host (set as default gateway) (only if
RESULT=1, when CONNECT=TRUE)
19.1.13
PPP_CONNECT_R2
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...