ACS_PN_WRITE_N_PRM_DPV1 Write Parameters from ABB Drives via PROFINET DPV1ΒΆ

../_images/93c175af61694c640a3313902f612d99

Function Bock ACS_PN_WRITE_N_PRM_DPV1 writes maximum 37 parameters to the drive in a single query. The number of parameters to be write is specified at the input NVAR.

Function Block Information

Available in PLC runtime system: V2.4 and above
Included in library: ACSDrivesComPN_AC500_V24.lib
Function Block Type: Function Block with historical values.

Block Description

Function Bock ACS_PN_WRITE_N_PRM_DPV1 writes maximum 37 parameters to the drive in a single query. The number of parameters to be write is specified at the input NVAR

Another limit while using the write Function Block is, it can process only up to 240 byte data in one request or 37 drive parameters whichever is lower. If the write data length is more than 240 byte, the Function Block generates an error code 16#7012.

Parameters to write to the drive are specified at the DATA Input. ACS_PB_PN_PRM_DPV1_DATA_TYPE structure must be declared to a variable and connected to DATA input using ADR, which is to be entered with Group, Index.

ACS_PB_PN_PRM_DPV1_DATA_TYPE structure has the following array elements:

  • abyPrmGroup : Array of 37 BYTE for specifying parameter Group.

  • abyPrmIndex : Array of 37 BYTE for specifying parameter Index

  • abyPrmType : Array of 37 BYTE for specifying parameter type , Please refer the respective Drives manual for parameter data type and enter the respective ENUM / VALUE . For details about ENUM / VALUE please refer ACS_PB_PN_PRM_TYPE_ENUM ACS_PB_PN_PRM_TYPE_ENUM

  • adwPrmValue: Array of 37 BYTE for specifying parameter value

    The values in the structure area are updated, when the WRITE job was performed without error. This is indicated by DONE=TRUE and ERR=FALSE.

Note

Currently user cannot use enumeration from ACS_PB_PN_PRM_TYPE_ENUM.

Instead user need to use numerical values from ACS_PB_PN_PRM_TYPE_ENUM only.

The values in the structure area are updated, when the WRITE job was performed without error. This is indicated by DONE=TRUE and ERR=FALSE.

Example

If the user need to read Parameter 10.01 and 11.05, then he need to enter the group and index number separately in input DATA as below:

DataStructure : ACS_PB_PN_PRM_DPV1_DATA_TYPE

Parameter Group : DataStruct.abyPrmGroup[1]:= 10; DataStruct.abyPrmGroup[2]:= 11;

Parameter Index : DataStruct .abyPrmIndex [1]:= 01; DataStruct .abyPrmIndex [2]:= 05;

Parameter Type : DataStruct. abyPrmType [1]:= xx; DataStruct. abyPrmType [2]:= xx;

Parameter Value : DataStruct. adwPrmValue [1]:= xx; DataStruct. adwPrmValue [2]:= xx;

The values in the structure area are written to drive when the write job is performed without error. This is indicated by DONE=TRUE and ERR=FALSE.