DL205 User Manual, 4th Edition, Rev. B
5–357
Chapter 5: Intelligent Box (IBox) Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
CTRIO Read Error (CTRRDER) (IB-1014)
CTRIO Read Error Code, on a leading edge transition to this IBox, will read the decimal
error code value (listed below) from the CTRIO module and place it in the specified Error
Code register. This instruction is not supported when the CTRIO is used in an ERM/EBC
configuration.
Since the Error Code in the CTRIO is only
maintained until another CTRIO command is
given, you must use this instruction immediately
after the CTRIO IBox that reports an error via
its Error bit parameter.
The Workspace register is for internal use by this
IBox instruction and MUST NOT be used
anywhere else in your program.
Error Codes:
0: No Error
100: Specified command code is unknown or unsupported
101: File number not found in the file system
102: File type is incorrect for specified output function
103: Profile type is unknown
104: Specified input is not configured as a limit on this output
105: Specified limit input edge is out of range
106: Specified input function is unconfigured or invalid
107: Specified input function number is out of range
108: Specified preset function is invalid
109: Preset table is full
110: Specified Table entry is out of range
111: Specified register number is out of range
112: Specified register is an unconfigured input or output
2001: Error reading Error Code - cannot access CTRIO via ERM
CTRRDER Parameters
• CTRIO#: specifies a specific CTRIO module based on a user defined number (see CTRIO Config)
• Workspace: specifies a V-memory location that will be used by the instruction
• Error Code: specifies the location where the Error Code will be written
DS5
Used
HPP
N/A
Parameter
DL205 Range
CTRIO# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K
K0-255
Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V
See DL205 V-memory map - Data Words
Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . V
See DL205 V-memory map - Data Words
ý
ý
þ
þ
230
240
2
5
0
-1
2
6
0