USER MANUAL – Z-TWS4/Z-PASS2-S/S6001-RTU
183
- 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
- CMD_RESULT: command exit code
19.1.8
MBUS_WRITE_RAW
The MBUS_WRITE_RAW FB sends a frame to the specified M-Bus slave.
A Control Frame or Long Frame can be sent with this FB.
When first called, the FB runs a process which starts the procedure;
on subsequent calls, it only checks if the process has finished its job.
The FB has the following input parameters:
- BAUD_RATE : the baud-rate on the serial port; possible values are:
300, 600, 1200, 2400, 4800, 9600, 19200, 38400
- ADDR : M-Bus primary (<=255) or secondary address
- SEND_INIT : flag to enable/disable the sending of the SND_NKE reset frame, at
the beginning of the procedure
- TIMEOUT : timeout, in seconds
- C_FIELD : the frame C Field value (see M-Bus protocol specification)
- CI_FIELD : the frame CI Field value (see M-Bus protocol specification)
- DATA[] : the frame User Data field (see M-Bus protocol specification)
- DATA_LEN : the length, i.e. the number of bytes, in the frame User Data field
- DEBUG : when this parameter is set to TRUE, the file /log/mbus_prot.log is
created, which contains the M-Bus protocol frames dump; this file can be
retrieved via FTP/SFTP protocol
- @ENABLE : TRUE -> FB is executed
FALSE -> FB is skipped
The FB has the following output parameters:
Содержание 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...