CAL O_SET_Instance (OUT_REG:=RawValueRegister, MN_RAW:=MinRawValue, MX_RAW:=MaxRawValue, MN_PHYS:=MinPhysValue, MX_PHYS:=MaxPhysValue, DIV10:=DivideBy10, ST_CH:=ChannelNumber, ST_REG:=StatusRegisterNumber, ST_MODE:=StatusMode, ST_HIGH:=StatusInHighByte, CHANNEL=>ChannelInformation)
O_SET_Instance (OUT_REG:=RawValueRegister, MN_RAW:=MinRawValue, MX_RAW:=MaxRawValue, MN_PHYS:=MinPhysValue, MX_PHYS:=MaxPhysValue, DIV10:=DivideBy10, ST_CH:=ChannelNumber, ST_REG:=StatusRegisterNumber, ST_MODE:=StatusMode, ST_HIGH:=StatusInHighByte, CHANNEL=>ChannelInformation) ;
Parameter
|
Data type
|
Meaning
|
---|---|---|
OUT_REG
|
Number of the raw value register (%MW)
|
|
MN_RAW
|
0 % raw value (e.g. 0)
|
|
MX_RAW
|
DINT
|
100% raw value (e.g. 4095)
|
MN_PHYS
|
lowest output value (e.g. 0 V as 0)
|
|
MX_PHYS
|
INT
|
greatest output value (e.g. +10 V as 10)
|
DIV10
|
MN_PHYS and MX_PHYS divided by 10
|
|
ST_CH
|
UINT
|
channel number (1n) (e.g. 4)
|
ST_REG
|
UINT
|
Number of the Status register (%IW)
|
ST_MODE
|
UINT
|
Status mode (e.g. 3=ACO_STATUS_MODE)
|
ST_HIGH
|
BOOL
|
Status byte found in high byte of the register
|
Parameter
|
Data type
|
Meaning
|
---|---|---|
CHANNEL
|
channel information to be described
|
Error message
|
Meaning
|
---|---|
E_EFB_USER_ERROR_1
|
The input OUT_REG is not connected with the number of an output word (%MW).
|
E_EFB_USER_ERROR_2 with the parameters of the faulty number
|
The input OUT_REG is connected with an invalid number of an output word (%MW).
|
E_EFB_USER_ERROR_3 with parameter MN_RAW
|
MN_RAW ≥ MX_RAW
|
E_EFB_USER_ERROR_4 with parameter MN_PHYS
|
Unknown value for MN_PHYS
|
E_EFB_USER_ERROR_5 with parameter MX_PHYS
|
Unknown value for MX_PHYS
|
E_EFB_USER_ERROR_11
|
ST_REG not entered
|
E_EFB_USER_ERROR_12
|
ST_REG too large
|
E_EFB_USER_ERROR_13
|
ST_CH not entered
|
Name
|
Type
|
Comment
|
---|---|---|
valuePtr |
UDINT |
3x or 4x raw value register |
rawControl |
BYTE |
Control Byte(internal use only) |
rawSpecific |
BYTE |
Specific Byte (internal use only) |
offset |
INT |
Offset Value |
range |
WORD |
Input range (resolution) |
channel |
BYTE |
Input Channel number |
statusMode |
BYTE |
Status Mode (internal use only) |
statusPtr |
UDINT |
Identifies high byte or low byte of status register |
warnCode |
BYTE |
Warning Code (internal use only) |