USER MANUAL – Z-TWS4/Z-PASS2-S/S6001-RTU
192
19.1.17
S7_DB_WRITE
This FB performs an S7 protocol Data Block write operation.
It connects to the specified S7 server IP address, rack and slot, performs the
operation and then disconnects.
The data to be written are read from the Straton shared-memory specified in the
SHM_NAME parameter.
INPUTS:
- SERVER_ADDR: the S7 server IP address
- SERVER_RACK: the S7 server rack number
- SERVER_SLOT: the S7 server slot number
- SHM_NAME: name of the Straton shared-memory which the data are read from
- SHM_SIZE: size of the Straton shared-memory which the data are read from
- DB_NUM: the number of the Data Block to be written
- OFFSET: start offset for the write operation in the Data Block
- LEN: number of bytes to be written
- TIMEOUT: timeout for the FB execution, in seconds
- @ENABLE: TRUE -> FB is executed
FALSE -> FB is skipped
the parameter is set to FALSE by the FB at the end of execution
OUTPUTS:
- RESULT: the FB result; possible values are:
0: FB still running
1: FB successfully executed
-1: FB execution failed
-2: FB execution timeout
- S7_CLI_RESULT: the S7 Client result; possible values are:
0: no failure
-1: invalid arguments failure
-2: initialization failure (e.g.: error opening the shared-memory)
-3: connection failure
-4: write operation failure
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...