Output DescriptionΒΆ
Note
The inputs marked with a triangle are of the class VAR_IN_OUT (input and output variable). These inputs must be connected to a variable.
SLAVE_DATA (slave data)
Data type: ACS_DRIVE_DATA_TYPE
The combined input/output SLAVE_DATA must be connected to the variable of type ACS_GEN_DEV_DATA_TYPE of the related slave device. Each device must have its own SLAVE_DATA variable.
The SLAVE_DATA variable transfers the MODBUS data from the ACS_COM_MOD_RTU_GEN_READ_N_PRM or ACS_COM_MOD_RTU_GEN_WRITE_N_PRM Function Blocks to the ACS_COM_MOD_RTU_GEN function block. It contains also some information about the online state of the device and must be connected to all related Function Blocks of this device.
DONE (done)
Data type: BOOL
Output DONE indicates the state of the job processing. After completing or aborting the processing (due to an error), DONE is set to TRUE for one cycle. For that reason, the output always has to be considered together with output ERR. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.
ERR (error)
Data type: BOOL
Output ERR indicates whether an error occurred during block processing. This output always has to be considered together with output DONE. If DONE = TRUE and ERR = TRUE, an error occurred. In this case, the error number can be read at output ERNO.
ERNO (error number)
Data type: WORD
Output ERNO provides an error identifier, if an invalid value was applied to an input or if an error occurred during request processing. ERNO always has to be considered together with the outputs DONE and ERR. The value output at ERNO is only valid, if DONE is TRUE and ERR is TRUE.
The encoding of the error messages output at ERNO is explained in the chapter Error Messages: Error Messages of the Function Block Libraries
BUSY (busy)
Data type: BOOL
Output BUSY indicates whenever there is a communication action performed.
Function Call in ST
dwAcsComModRTUGenWriteNPrm_DATA\ := ADR(aiAcsComModRTUGenWriteNPrm_VALUE[1]);
\ \
ACSComModRTUGenWriteNPrm\ (EN\ \ \ \ \ \ \ \ := xACSComModRTUGenWriteNPrm_EN,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ FCT\ \ \ \ \ \ \ \ := byACSComModRTUGenWriteNPrm_FCT,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NB\ \ \ \ \ \ \ \ \ := uiACSComModRtuGenWriteNPrm_NB,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ADDR\ \ \ \ \ \ \ := uiACSComModRtuGenWriteNPrm_ADDR,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DATA\ \ \ \ \ \ \ := dwAcsComModGenWritePrm_DATA,
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SLAVE_DATA\ := tsSlaveData);
\ \ \
xACSComModRTUGenWriteNPrm_DONE\ := ACSComModRTUGenWriteNPrm.DONE;
xACSComModRTUGenWriteNPrm_ERR\ \ := ACSComModRTUGenWriteNPrm.ERR;
wACSComModRTUGenWriteNPrm_ERNO\ := ACSComModRTUGenWriteNPrm.ERNO;
xACSComModRTUGenWriteNPrm_BUSY\ := ACSComModRTUGenWriteNPrm.BUSY;