USER MANUAL – Z-TWS4/Z-PASS2-S/S6001-RTU
178
In this chapter, all the FBs and functions available on Z-TWS4/Z-PASS2-S/S6001-RTU are listed, providing a
description of input/output parameters and some notes for each of them.
19.1
Function Blocks
19.1.1
General FB behavior
The description given in this paragraph apply to all the FBs available on Z-TWS4/Z-PASS2-S/S6001-RTU,
except for the LINUX_SHELL FB, which has a particular behavior (see related paragraph).
All the FBs require more than one PLC cycle to be completed (Asynchronous Function Block); so, the
application shall run them for a number of cycles until it detects that the FB execution has ended.
Every FB has an “ENABLE” parameter, which is an input/output parameter: to let the FB actually run, the
application shall put ENABLE=TRUE (input), not changing the parameter value during the FB execution;
when the execution is completed, the FB code itself will put ENABLE=FALSE (output); when the FB is called
with ENABLE=FALSE, it does nothing and returns the NOT_DONE (-2) result value.
All the FBs return the FAILED (-1) result value to signal that the FB execution has failed, for a generic
reason; some FBs provide further failure result values, in particular the TIMEOUT (2) result value.
All the FBs return the RUNNING (0) result value to tell the application that the FB processing is still running
and the DONE (1) result value when the FB processing has successfully ended.
19.1.2
FTP_GET
The FTP_GET FB downloads a file, by means of the FTP protocol.
When first called, the FB runs a process which starts performing the download;
on subsequent calls, it only checks if the process has finished its job.
The FB has the following input parameters:
- HOST : IP address or host name of the FTP server
- PORT : TCP port for the FTP protocol (normally: 21)
- USERNAME : username for authentication
Содержание S6001-RTU
Страница 35: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 35 Then import the Library menu Tools Import...
Страница 68: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 68...
Страница 76: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 76...
Страница 86: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 86...
Страница 87: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 87...
Страница 107: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 107 Once the upload is successfully completed the following page is shown...
Страница 121: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 121...
Страница 127: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 127 When the procedure is completed the following page is shown...
Страница 133: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 133...
Страница 158: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 158 Select the mbus_vars csv file and click save The variables are imported...
Страница 160: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 160 Now create the Embedded Shared Memory Insert a Master Port...
Страница 162: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 162 Select the mbus_shm csv file...
Страница 165: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 165...