Input DescriptionΒΆ

../_images/a2b82126495d121a0a331390014b244f

Note

The inputs marked with a triangle 3a5879644449d9410a33139001f05228_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: UINT, Range 0 to 65535

For 16bit Parameters it is set in the format 100 * GG + ii as decimal integer value. (GG = parameter group, ii = parameter index of the drive, e.g. for parameter 12.02, 100 * GG + ii = 1202.)

(GG = parameter group, ii = parameter index of the drive)

For 32bit Parameters it must be set according to the formula 20000 + 200 x GG + 2 x ii.(see description of related drive fieldbus module), e.g. for parameter 14.54 = 22908.

This calculation is provided in the function ACS_MOD_PRM_NUM_32BIT ACS_MOD_PRM_NUM_32BIT Function creates the MODBUS Address for a 32 Bit Parameter of ACSxxx Drives, which output can then be connected to the PRM_NUM input. The MODBUS address which is used at the Communication Block is PRM_NUM - 1.

Note

The parameter number must be set prior or at the same cycle when input EN is set to TRUE.

The MODBUS address which is used at the communication block is PRM_NUM - 1.

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.