MC_ReadHardwareParameter
This function block allows to read parameters from the hardware drive asynchronously via ADS. The function block supports CoE and SoE drives.
Syntax
Definition:
FUNCTION_BLOCK MC_ReadHardwareParameter
VAR_IN_OUT
Axis : Reference To AXIS_REF;
END_VAR
VAR_INPUT
Execute : BOOL;
Index : UINT;
SubIndex : USINT;
DestinationAddress : PVOID;
DataSize : UDINT;
END_VAR
VAR_OUTPUT
Done : BOOL;
Busy : BOOL;
Active : BOOL;
Error : BOOL;
ErrorId : UDINT;
END_VAR
Inputs
|
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Execute |
BOOL |
|
Trigger the command with rising edge. |
|
Index |
UINT |
0 |
CoE object index or SoE IDN |
|
SubIndex |
USINT |
0 |
CoE sub index or SoE element |
|
DestinationAddress |
PVOID |
0 |
Contains the address of the destination buffer. |
|
DataSize |
UDINT |
0 |
Contains the size of the destination buffer. |
Outputs
|
Name |
Type |
Description |
|---|---|---|
|
Done |
BOOL |
Value is successfully read from the target. |
|
Busy |
BOOL |
Function block is not finished. |
|
Active |
BOOL |
Function block is active. |
|
Error |
BOOL |
Error occurred within function block. |
|
ErrorId |
UDINT |
Error identifier |