MC_Communications_BkPlcMc
The function block internally calls the function blocks MC_AxAdsCommServer_BkPlcMc and MC_AxRtLoggerSpool_BkPlcMc. It also provides a message buffer.
Inputs
VAR_INPUT
nFirstAxisIndex: INT;
nLastAxisIndex: INT;
pAxItf: POINTER TO Axis_Ref_BkPlcMc;
END_VAR
Name | Type | Description |
---|---|---|
nFirstAxisIndex | INT | These parameters correspond to the parameters of the same name of the MC_AxAdsCommServer_BkPlcMc function block. |
nLastAxisIndex | INT | |
pAxItf | POINTER | Here the address of the Axis_Ref_BkPlcMc array is to be transferred. An incorrect specification at this point causes the PLC application to crash inevitably through triggering of serious runtime errors (Page Fault Exception). |
Outputs
VAR_OUTPUT
PlcMcManOffline: BOOL;
END_VAR
Name | Type | Description |
---|---|---|
PlcMcManOffline | BOOL | This parameter corresponds to the parameter of the same name of the MC_AxAdsCommServer_BkPlcMc function block. |
------
nFirstAxisIdx, nLastAxisIdx: This parameter is used to specify the dimensioning of the Axis_Ref_BkPlcMc array.
Notice | |
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) |
Behavior of the function block
By cyclic call of this function block in the PLC application the transferred axes are connected to an internal message buffer. The message buffer referenced when calling MC_AxUtiStandardInit_BkPlcMc is ignored when calling the MC_Communications_BkPlcMc function block. The messages from the internal message buffer are cyclically transferred to the Windows Event Viewer by internally calling an instance of the MC_AxRtLoggerSpool_BkPlcMc function block. Furthermore the PLC application gets the character of an ADS server, because internally an instance of the MC_AxAdsCommServer_BkPlcMc function block is called.