P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 352 of 909
CAN, CAN(arg)
CAN Bus Status
APPLICATION:
Communications control
DESCRIPTION:
Get CAN bus error
EXECUTION:
Immediate
CONDITIONAL TO:
N/A
LIMITATIONS:
N/A
READ/REPORT:
RCAN, RCAN(arg)
See the following description for values of arg
WRITE:
Read only
LANGUAGE ACCESS:
Formulas and conditional testing
UNITS:
N/A
RANGE OF VALUES:
See the following description
TYPICAL VALUES:
N/A
DEFAULT VALUE:
N/A
FIRMWARE VERSION:
5.x and later, model dependent
COMBITRONIC:
N/A
DETAILED DESCRIPTION:
The CAN command is used to get (read) an error or other status information about the
CAN bus. The user should not assume an error is indicated simply because a value greater
than 0 is reported. Several of the bits are for information only and do not indicate an error.
If an error condition exists, then status word 2, bit 4 will indicate so. A user program or a
manual report using RCAN provides further detail about the error condition after the CAN
error status bit is indicated in status word 2, bit 4.
The SmartMotor supports different protocols over the optional CAN port. CANopen and
DeviceNet are popular industrial networks that use CAN. If a master is communicating to a
group of SmartMotors as slaves under either of these standard protocols, the Combitronic
protocol can still function, and it will not be detected by the CANopen or DeviceNet master.
NOTE:
To operate properly, the CAN network must have all devices set to the same
baud rate.
Part 2: Commands: CAN, CAN(arg)