PLCopen Motion Control pAxItf : Here, the address of a variable or an array of variables of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour of the function block Through cyclic calling of this function block in the PLC application, the application assumes the character of an ADS server and responds to ADS read and ADS write-access like any other ADS server. This includes the decoding of IdxGroup/IdxOffset addressing. Function blocks of type MC_AxAdsReadDecoder_BkPlcMc [ } 200] and MC_AxAdsWriteDecoder_BkPlcMc [ } 201] are called as required. NOTE! This function block must not be used if the PLC application already is an ADS server.
In this case the function blocks of type MC_AxAdsReadDecoder_BkPlcMc [ } 200] and MC_AxAdsWriteDecoder_BkPlcMc [ } 201] should be called from the existing ADS server function block of the application. 4.5.2 MC_AxAdsPtrArrCommServer_BkPlcMc The function block gives the application the capacity to function as an ADS server. Calls function blocks of type MC_AxAdsReadDecoder_BkPlcMc [ } 200] and MC_AxAdsWriteDecoder_BkPlcMc [ } 201] as required. The ADS codes [ } 242] are listed in the Knowledge Base. NOTE! For most applications an MC_AxAdsCommServer_BkPlcMc is adequate and preferable. ( MC_AxAdsCommServer_BkPlcMc [ } 198] ) VAR_INPUT nFirstAxisIndex: INT; nLastAxisIndex:
INT; END_VAR VAR_INOUT pAxItfArr: POINTER TO DWORD; END_VAR nFirstAxisIndex , nLastAxisIndex : This parameter is used to specify the dimensioning of the Axis_Ref_BkPlcMc [ } 67] array. pAxItfArr : Here, the address of a variable of type ARRAY [ncnstFirstAxId..ncnstLastAxId] OF POINTER TO Axis_Ref_BkPlcMc [ } 67] should be transferred. PLC Library Hydraulics 199 Version: 1.4 Attention Crash of the PLC application An incorrect specification at this point excludes some of the axes from the communication or results in a crash of the PLC application by triggering serious runtime errors (Page Fault Exception).
Attention Crash of the PLC application An incorrect specification at this point causes the PLC application to crash inevitably through triggering of serious runtime errors (Page Fault Exception).