Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 61 of 61

DL205 PLC User Manual, Volume 1 of 2: Chapter 5: RLL and Intelligent Box Instructions, pages 583 to 592

Pages 583 to 592 of 592, from DL205 PLC User Manual, Volume 1 of 2

The original document is the PDF (13 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the PLC Direct D2-08ND3 and Koyo D2-08ND3

Page 583

Chapter 5: Intelligent Box (IBox) Instructions

CTRRTLM Example (cont’d) Rung 3: If the Run To Limit Mode parameters are OK, set the Direction Bit and Enable the output.

DL205 User Manual, 4th Edition, Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

5–361

Page 584

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 Position Mode (CTRRTPM) (IB-1012) 230 240 250-1 260

DS5

Used

HPP

N/A

5–362

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 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. 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 (20Hz - 20kHz) • 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

DL205 User Manual, 4th Edition, Rev. A

Page 585

Chapter 5: Intelligent Box (IBox) Instructions Parameter

DL205 Range

1 2 3 4 CTRRTPM Example 5 Rung 1: This sets up the CTRIO module in slot 2 of the local base. Each CTRIO module in the system will need a separate CTRIO Config IBox before any CTRxxxx IBoxes can be used. The CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 6 through V2061 for its output data. 7 8 9 10 NOTE: The CTRIO Configuration IBox instruction does not require a permissive contact. The top line will be 11 identified in BOLD italics, and the instruction name and ID will be in BOLD characters. 12 13 14 A B C D CTRIO# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Output# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Duty Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B

K0-255 K0-3 K20-20000; See DL205 V-memory map - Data Words K0-99; See DL205 V-memory map K0-2147434528; See DL205 V-memory map See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map

DL205 User Manual, 4th Edition, Rev. A

5–363

Page 586

Chapter 5: Intelligent Box (IBox) Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

CTRRTPM Example (cont’d)

5–364

Rung 2: This CTRIO Run To Position Mode IBox sets up Output #0 in CTRIO #1 to output pulses at a Frequency of 1000 Hz, use the 'Greater than Ch1/Fn1' comparison operator, until the input position of 1500 is reached. This example program requires that you load CTRRTPM_IBox.cwb into your Hx-CTRIO module.

Rung 3: If the Run To Position Mode parameters are OK, set the Direction Bit and Enable the output.

DL205 User Manual, 4th Edition, Rev. A

Page 587

Chapter 5: Intelligent Box (IBox) Instructions

CTRIO Velocity Mode (CTRVELO) (IB-1013)

230 240 250-1 260 DS5

Used

HPP

N/A

1 This IBox will take more than one PLC 2 scan to execute. Either the Success or Error bit will turn on when the command is 3 complete. If the Error Bit is on, you can use the CTRIO Read Error Code 4 (CTRRDER) IBox to get extended error information. 5 The Workspace register is for internal use by this IBox instruction and MUST NOT 6 be used anywhere else in your program. 7 CTRVELO Parameters • CTRIO#: specifies a specific CTRIO module based on a user defined number (see CTRIO Config 8 Ibox) • Output#: specifies a CTRIO output to be used by the instruction 9 • Frequency: specifies the output pulse rate (20Hz - 20kHz) • Duty Cycle: specifies the % of on time versus off time. This is a hex number. Default of 0 is 50%, 10 also entering 50 will yield 50%. 50% duty cycle is defined as on half the time and off half the time • Step Count: specifies the target position as a 32-bit Hex number, a value of Kffffffff will cause the profile to run continuously as long as the output is enabled 11 • 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 12 • Error: specifies a bit that will turn on if the instruction does not complete successfully 13 Parameter DL205 Range 14 A B C D CTRIO Velocity Mode loads the Velocity command and given parameters on a specific Output resource on a leading edge transition to this IBox.

CTRIO# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Output# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Duty Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Step Count . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B

K0-255 K0-3 K20-20000; See DL205 V-memory map - Data Words K0-99; See DL205 V-memory map K0-2147434528; See DL205 V-memory map See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map

DL205 User Manual, 4th Edition, Rev. A

5–365

Page 588

Chapter 5: Intelligent Box (IBox) Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

CTRVELO Example

5–366

Rung 1: This sets up the CTRIO module in slot 2 of the local base. Each CTRIO module in the system will need a separate CTRIO Config IBox before any CTRxxxx IBoxes can be used. The CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data.

NOTE: The CTRIO Configuration IBox instruction does not require a permissive contact. The top line will be identified in BOLD italics, and the instruction name and ID will be in BOLD characters.

Rung 2: This CTRIO Velocity Mode IBox sets up Output #0 in CTRIO #1 to output 10,000 pulses at a Frequency of 1000 Hz. This example program requires that you load CTRVELO_IBox.cwb into your Hx-CTRIO module.

DL205 User Manual, 4th Edition, Rev. A

Page 589

Chapter 5: Intelligent Box (IBox) Instructions

CTRVELO Example (cont’d) Rung 3: If the Velocity Mode parameters are OK, set the Direction Bit and Enable the output.

DL205 User Manual, 4th Edition, Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–367

Page 590

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 Write File to ROM (CTRWFTR) (IB-1006) 230 240 250-1 260

DS5

Used

HPP

N/A

5–368

CTRIO Write File to ROM writes the runtime changes made to a loaded CTRIO Preset Table back to Flash ROM on a leading edge transition to this IBox. 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. CTRWFTR 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 • 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

Parameter CTRIO# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Output# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B

DL205 User Manual, 4th Edition, Rev. A

DL205 Range K0-255 K0-3 See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map

Page 591

Chapter 5: Intelligent Box (IBox) Instructions

CTRWFTR Example

1 2 3 4 5 6 NOTE: The CTRIO Configuration IBox instruction does not require a permissive contact. The top line will be 7 identified in BOLD italics, and the instruction name and ID will be in BOLD characters. 8 Rung 2: This CTRIO Edit Preset Table Entry IBox will change Entry 0 in Table #2 to be a RESET at Count 3456. This example program requires that you load CTRWFTR_IBox.cwb into your Hx-CTRIO module. 9 10 11 12 13 14 A B C D Rung 1: This sets up the CTRIO module in slot 2 of the local base. Each CTRIO module in the system will need a separate CTRIO Config IBox before any CTRxxxx IBoxes can be used. The CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data.

(example continued on next page)

DL205 User Manual, 4th Edition, Rev. A

5–369

Page 592

Chapter 5: Intelligent Box (IBox) Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

CTRWFTR Example (cont’d)

5–370

Rung 3: If the file is successfully editted, use a Write File To ROM IBox to save the edited table back to the CTRIO's ROM, thereby making the changes retentive.

DL205 User Manual, 4th Edition, Rev. A