DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-364
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
CTRIO Run to Position Mode (CTRRTPM) (IB-1012)
CTRIO Run To Position Mode, on a leading edge transition to this IBox, loads the Run to
Position command and given parameters on a specific Output resource.
Valid Function Values are:
00: Less Than Ch1/Fn1
10: Greater Than Ch1/Fn1
01: Less Than Ch1/Fn2
11: Greater Than Ch1/Fn2
02: Less Than Ch2/Fn1
12: Greater Than Ch2/Fn1
03: Less Than Ch2/Fn2
13: Greater Than Ch2/Fn2
This IBox will take more than 1 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.
CTRRTPM 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 (H0-CTRIO: 20Hz - 25KHz / H0-CTRIO2: 20Hz - 250
KHz)
• 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
• Position: specifies the count value, as measured on the encoder input, at which the output pulse train
will be turned off
• 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
DS
Used
HPP
N/A