Description
Original instructions
Function description
The function block sets the information for the analog output channels (ANL_OUT).
This block enables all scaling blocks of this library to be used.
NOTE: The function block is only required if there is no specific block for a specific analog module available.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
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)
Representation in ST
Representation:
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 description
Description of the input parameters:
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
Description of the output parameters:
Parameter
Data type
Meaning
CHANNEL
channel information to be described
Runtime error
The following error messages can be triggered:
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_RAWMX_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