Reading DX4 Fault Code Displayed On Front Of Drive
The code below will move the error number displayed on the 8 segment display
into a declared variable for use in other programs.
'This example is for Axis 0 error number reading
'
'CO_READ_AXIS(axis_number, index, subindex ,type [,vr_number])
'CoE value $603F = Error Code - UINT16
'Declaring Variables
DIM axis0_error_code AS STRING(5)
DIM axis0_error_number AS STRING(2)
VR(500)=0 'Initial clearing of VR value
WHILE TRUE
'CO_READ_AXIS(axis_number, index, subindex ,type [,vr_number])
CO_READ_AXIS(0,$603f,0,6,500)
'Get the hexadecimal value for the decimal number supplied as a STRING
axis0_error_code = HEX(VR(500))
axis0_error_number = RIGHT(axis0_error_code,2)'extract the 2 right values of the string
WA(1000)'Arbitary loop cycle update period
WEND
Related Articles
Controller Error Codes
AN-315 EtherCAT setup for Panasonic A5B Drive
When delivered, the Panasonic A5B has 2 features set; the Positive Over Travel Input (POT) and the Negative Over Travel input (NOT). If these are connected to limit switches then the system will work in the usual way until the limit switch is ...
Clear DX4 encoder error
For "Clear all encoder errors" write "1" to address 0x3685:01 For the "Clear multiturn errors" write "1" to address 0x3685:02 The data type is UINT16 From a Motion-iX TrioBASIC program you can use either CO_WRITE or CO_WRITE_AXIS to access this ...
Axis Status Error
Just picked up my Flex-6 Nano again to do some testing with movelink, for some reason my FLEX-3AX is throwing errors. pressing the error reset button is not changing anything. All 3 axis are the same: Answer: The Fault bit in the CoE status will be ...
Changing EtherCAT drive address
There are 3 methods to set the address in the servo-drive; 1 . If there are rotary address switches on the front of the drive, then they may be used to select the address. 2. The address may be set in memory, either via a front panel keypad or ...