FB_ArmioBoardControl(...) - General Information
Type: |
Function block |
Available as of: |
V1.0.0.0 |
Inherits from: |
- |
Implements: |
- |
Versions: |
Current version |
This chapter provides information on:
oTask
Configure and trigger transmission requests.
After a successful configuration, each call of the function block sends an RTR (Remote Transmission Request to a TPDO (Transmit Process Data Object) producer, in this case the ARMIO board. Network and node Id are read from the device transferred at the input i_ifDevice.
This procedure is necessary to read the inputs of the ARMIO board.
Outputs can be set at any time without a call of FB_ArmioBoardControl(...).
Input |
Data type |
Description |
---|---|---|
i_xEnable |
BOOL |
A rising edge FALSE -> TRUE activates the POU, a falling edge TRUE -> FALSE deactivates the POU. A deactivated POU does not execute any actions. |
i_ifDevice |
DED.IDevice2 |
Target ARMIO board. DED is the namespace of the CAA Device Diagnosis library (CAA Technical Workgroup). IDevice2 is an interface of this library. |
Output |
Data type |
Description |
---|---|---|
q_xActive |
BOOL |
TRUE: The POU is active and has to be executed further. FALSE: The POU is inactive. |
q_xReady |
BOOL |
TRUE: The POU is configured and no bus errors are active. FALSE: The POU is not ready to send transmission requests. |
q_etDiag |
General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> Status message q_etDiag <> GD.ET_Diag.Ok -> Diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message that gives additional information on the diagnostic state. |
q_etDiag |
q_etDiagExt |
Enumeration |
Description |
---|---|---|---|
Ok |
2 |
Transmission request was sent. |
|
Ok |
1 |
POU is disabled. |
|
Ok |
12 |
The CAN bus is not running. |
|
Ok |
11 |
The CANopen manager is not running. |
|
Ok |
10 |
The ARMIO board is not running. |
|
InputParameterInvalid |
13 |
The device is invalid. |
|
FieldBusConditionInvalid |
4 |
The CAN bus interface is invalid. |
|
FieldBusConditionInvalid |
3 |
The CANopen manager interface is invalid. |
|
FieldBusConditionInvalid |
14 |
The configured baud rate is invalid. |
|
FieldBusConditionInvalid |
5 |
A feedback value is invalid. |
|
UnexpectedProgramBehavior |
5 |
A feedback value is invalid. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
Triggering transmission requests was successful.
Enumeration name: |
Disabled |
Enumeration value: |
1 |
Description: |
POU is disabled. |
The function block was disabled.
Enumeration name: |
Working |
Enumeration value: |
2 |
Description: |
Transmission request was sent. |
Transmission request was sent.
Enumeration name: |
CANopenManagerInvalid |
Enumeration value: |
3 |
Description: |
The CANopen manager interface is invalid. |
Issue |
Cause |
Solution |
---|---|---|
Initialization was unsuccessful. |
The CANopen manager interface is invalid. |
Ensure that the CANopen manager is added to the Devices tree. |
Enumeration name: |
CANbusInvalid |
Enumeration value: |
4 |
Description: |
The CAN bus interface is invalid. |
Issue |
Cause |
Solution |
---|---|---|
Initialization was unsuccessful. |
The CAN bus interface is invalid. |
Ensure that the CAN bus is added to the Devices tree. |
Enumeration name: |
UnexpectedFeedback |
Enumeration value: |
5 |
Description: |
A feedback value is invalid. |
Issue |
Cause |
Solution |
---|---|---|
Initialization was unsuccessful. |
A CAN error was detected. Transmission request was not sent. |
Refer to q_sMsg for further information. |
Enumeration name: |
ArmioBoardNotRunning |
Enumeration value: |
10 |
Description: |
The ARMIO board is not running. |
Issue |
Cause |
Solution |
---|---|---|
Transmission request was not sent. |
The ARMIO board is not running. |
Ensure that the ARMIO board is running. |
Enumeration name: |
CANopenManagerNotRunning |
Enumeration value: |
11 |
Description: |
The CANopen manager is not running. |
Issue |
Cause |
Solution |
---|---|---|
Transmission request was not sent. |
The CANopen manager is not running. |
Ensure that the CANopen manager is running. |
Enumeration name: |
CANbusNotRunning |
Enumeration value: |
12 |
Description: |
The CAN bus is not running. |
Issue |
Cause |
Solution |
---|---|---|
Transmission request was not sent. |
The CAN bus is not running. |
Ensure that the CAN bus is running. |
Enumeration name: |
DeviceInvalid |
Enumeration value: |
13 |
Description: |
The device is invalid. |
Issue |
Cause |
Solution |
---|---|---|
Initialization was unsuccessful. |
The value transferred at the input i_ifDevice is invalid. |
Ensure that value transferred at the input i_ifDevice is valid. |
Enumeration name: |
BaudrateInvalid |
Enumeration value: |
14 |
Description: |
The configured baud rate is invalid. |
Issue |
Cause |
Solution |
---|---|---|
Initialization was unsuccessful. |
The configured baud rate is invalid. |
Ensure that the baud rate matches the settings on the ARMIO board. |