DL205 User Manual, 4th Edition, Rev. B
5–359
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 Run to Limit Mode (CTRRTLM) (IB-1011)
CTRIO Run To Limit Mode, on a leading edge transition to this IBox, loads the Run to
Limit command and given parameters on a specific Output resource. The CTRIO's Input(s)
must be configured as Limit(s) for this
function to work.
Valid Hexadecimal Limit Values:
K00 - Rising Edge of Ch1/C
K10 - Falling Edge of Ch1/C
K20 - Both Edges of Ch1/C
K01 - Rising Edge of Ch1/D
K11 - Falling Edge of Ch1/D
K21 - Both Edges of Ch1/D
K02 - Rising Edge of Ch2/C
K12 - Falling Edge of Ch2/C
K22 - Both Edges of Ch2/C
K03 - Rising Edge of Ch2/D
K13 - Falling Edge of Ch2/D
K23 - Both Edges of Ch2/D
This IBox will take more than one PLC scan to execute. Either the Success or Error bit will
turn on when the command is complete. If the Error Bit is on, you can use the CTRIO Read
Error Code (CTRRDER) IBox to get extended error information.
The Workspace register is for internal use by this IBox instruction and MUST NOT be used
anywhere else in your program.
CTRRTLM Parameters
• CTRIO#: specifies a specific CTRIO module based on a user defined number (see CTRIO Config
Ibox)
• Output#: specifies a CTRIO output to be used by the instruction
• Frequency: specifies the output pulse rate (H2-CTRIO: 20Hz - 25KHz / H2-CTRIO2: 20Hz -
250 KHz)
• Limit: the CTRIO's Input(s) must be configured as Limit(s) for this function to operate
• Duty Cycle: specifies the % of on time versus off time. This is a hex number. Default of 0 is 50%,
also entering 50 will yield 50%. 50% duty cycle is defined as on half the time and off half the time
• Workspace: specifies a V-memory location that will be used by the instruction
• Success: specifies a bit that will turn on once the instruction has successfully completed
• Error: specifies a bit that will turn on if the instruction does not complete successfully
DS5
Used
HPP
N/A
ý
ý
þ
þ
230
240
2
5
0
-1
2
6
0