Download Multitech MA420 Specifications

Transcript
sigmadue - IEC 61131-3 Function Block Library
5-3-17 MB_SLV_RD8_REAL
FB Prototype
MB_SLV_RD8_REAL
PROTOCOL
REGISTER
AD_MODE
→
→
→
ASCON_SERIALPROTOCOL
UINT
BOOL
USINT
REAL
REAL
REAL
REAL
REAL
REAL
REAL
REAL
→
→
→
→
→
→
→
→
→
OPRS
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
OUT8
Input parameters
Label
PROTOCOL
REGISTER
AD_MODE
Type
Description
ASCON_SERIALPROTOCOL Reference Protocol
UINT
Register
Addressing Mode Setting
BOOL
(default value = TRUE)
Output parameters
Label
Type
OPRS
USINT
OUT1 – OUT8 REAL
Description
Reference
tables
Description
Function block result
Data
This Function Block reads 8 REALvalues from the memory area starting from the
passed register (REGISTER). The module returns the OPRS parameter that is
used to detect if the operation is performed correctly, and the value of the registers (OUT1 – OUT8). The setting AD_MODE allows the user to select if the REGISTER input base is 0 (AD_MODE = FALSE) or 1 (AD_MODE = TRUE). The
default value for AD_MODE is TRUE.
Here are reported the range of the parameters used by the function block.
Protocol
Protocol
SLAVE1
SLAVE2
Description
Protocol Modbus Slave 1
Protocol Modbus Slave 2
OPRS
OPRS
0
1
3
146
Description
Service executed correctly
Address not allowed
Protocol number not valid