Input DescriptionΒΆ

../_images/1e011bfd495d10550a3313900055592f

Note

The inputs marked with a triangle 927341cb4859a1cc0a331390010b1f55_78f228175b765b440a33139001315693 are of the class VAR_IN_OUT (input and output variable). These inputs must be connected to a variable.

EN (enable)

Data type: BOOL

The Function Block is activated (EN = TRUE) or deactivated (EN = FALSE) via input EN. If the block is active, the current values are available at the outputs. To start a new write job the input EN has to be set from FALSE to TRUE.

If the input values are valid, a request to perform a MODBUS job is sent to the Communication Block via the DRIVE_DATA variable. If at least 1 input is invalid, no job is generated and the error is displayed at the outputs ERR and ERNO instead.

PRIO (priority)

Data type: BOOL

Input PRIO is reserved for future usage. It can be left open.

NVAR (number of variables)

Data type: UINT, Default value: 1, Range: 1 to 125

Input NVAR defines the number of variables to be read by the Function Block.

If the read job was finished successfully the first 15 parameter values are written to the internal array VALUE, which can be made visible in the visualization element ACS_MOD_READ_N_PRM_VISU_PH ACS_MOD_READ_N_PRM_VISU_PH Visualization Faceplate for the Function Block ACS_MOD_READ_N_PRMor used via <instance of the function block>. VALUE[1..15].

PRM_NUM (parameter number)

Data type: WORD

Input for function. Parameter number in format: 100 * GG + ii

(GG = parameter group, ii = parameter index of the drive, e.g. for parameter 12.02, 100 * GG + ii = 1202.)

DATA (data)

Data type: DWORD

At input DATA, the address of the first operand in the PLC is specified to which the data read by the slave should be stored.

For this purpose it is necessary that all PLC variables, which are written to the drive, have consecutive addresses. This can be obtained by declaration of each variable within the %MW0.xxx area or declaration of an array containing all variables.

Declaration of each variable has the advantage, that the types (integer or word) can be selected individually.

DRIVE_DATA (drive data)

Data type: ACS_DRIVE_DATA_TYPE ACS_DRIVE_DATA_TYPE Structure to Exchange Data Between Function Blocks for 1 Drive

The combined input/output DRIVE_DATA must be connected to the variable of type ACS_DRIVE_DATA_TYPE of the related ACS drive (slave). Each drive must have its own DRIVE_DATA variable.

The DRIVE_DATA variable contains the data of the drive and must be connected to all related Function Blocks of this drive.

The Function Block ACS_COM_MOD_RTU_ENHANCED reads the Control Word and references (CW, SPEED_REF, REF_VALUE2) from the DRIVE_DATA variable and writes the status information (SW, ACT_SPEED, ACT-VALUE2) to the DRIVE_DATA variable. It also receives requests and data for MODBUS jobs from other Function Blocks e.g. ACS_MOD_READ_N_PRM or ACS_MOD_WRITE_N_PRM via the DRIVE_DATA variable.