TwinCAT PLC Library Hydraulics - Version 1.4 — 4.5.4 MC_AxAdsWriteDecoder_BkPlcMc (from V3.0)

PLCopen Motion Control nIdxGroup , nIdxOffs , cbReadLen : These values are required in order to decode the access. They are supplied by an ADS server's ADS indication function block. pAxItf : Here, the address of a variable or an array of variables of type Axis_Ref_BkPlcMc [ } 67] should be transferred. bClear : Indicates that an ADS access indicated with bValid should be acknowledged. bPending : Indicates that an ADS access indicated with bValid is being processed. Behaviour of the function block If, when the bValid signal is present, the function block indicates neither bClear nor bPending it has not decoded the combination of nIdxGroup and nIdxOffs, and has not generated a response.

In such a case, the ADS server (if there is one) must call another decoder, or must generate a response with the appropriate error code. 4.5.4 MC_AxAdsWriteDecoder_BkPlcMc (from V3.0) The function block decodes ADS write accesses. The ADS codes [ } 242] are listed in the Knowledge Base. VAR_INPUT nFirstAxisIndex: INT; nLastAxisIndex: INT; bReset: BOOL; bValid: BOOL; sNetId: STRING(80); nPort: UINT; nInvokeId: UDINT; nIdxGroup: UDINT; nIdxOffs: UDINT; cbWriteLen: UDINT; pWriteBuff: DWORD; pAxItf: POINTER TO Axis_Ref_BkPlcMc:=0; END_VAR VAR_INOUT DeadManCount: UDINT; END_VAR VAR_OUTPUT bClear: BOOL; bPending: BOOL; END_VAR nFirstAxisIndex , nLastAxisIndex :

This parameter is used to specify the dimensioning of the Axis_Ref_BkPlcMc [ } 67] array. CAUTION! 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). PLC Library Hydraulics 201 Version: 1.4