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

The text of a manual · part 60 of 61

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

Pages 573 to 582 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 573

Chapter 5: Intelligent Box (IBox) Instructions

Parameter

DL205 Range

1 2 3 4 CTRINTR 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. 6 The CTRIO has been configured to use V2000 through V2025 for its input data, and V2030 through V2061 for its output data. 7 8 9 10 11 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. 12 13 14 A B C D CTRIO# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Output# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Entry Type . . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Pulse Time . . . . . . . . . . . . . . . . . . . . . . . . . . . V,K Preset Count . . . . . . . . . . . . . . . . . . . . . . . . . V,K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B

K0-255 K0-3 K0-5; See DL205 V-memory map - Data Words K0-65535; See DL205 V-memory map - Data Words K0-2147434528; See DL205 V-memory map See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map

(example continued on next page)

DL205 User Manual, 4th Edition, Rev. A

5–351

Page 574

Chapter 5: Intelligent Box (IBox) Instructions

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

CTRINTR Example (cont’d)

5–352

Rung 2: This rung is a sample method for enabling the CTRINTR command. A C-bit is used to allow the programmer to control the command from Data View for testing purposes. Turning on C0 will cause the CTRINTR instruction to create a single entry preset table, but not as a file, and use it for output #0, the new preset will be loaded when the current count is reset. In this case the single preset will be a set at a count of 25 for output #0. Operating procedure for this example code is to load the CTRINTR_ex1.cwb file to your CTRIO, then enter the code shown here, change to RUN mode, enable output #0 by turning on C2 in Data View, turn encoder on CTRIO to value above 10 and output #0 light will come on. Now turn on C0 to execute the CTRINTR command, reset the counter with C1, then turn encoder to value of 25+ (output #0 should turn on).

DL205 User Manual, 4th Edition, Rev. A

Page 575

Chapter 5: Intelligent Box (IBox) Instructions

CTRINTR Example (cont’d) Rung 3: This rung allows the programmer to reset the counter from the ladder logic.

Rung 4: This rung allows the operator to enable output #0 from the ladder code.

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–353

Page 576

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 Load Profile (CTRLDPR) (IB-1001) 230 240 250-1 260

DS5

Used

HPP

N/A

5–354

CTRIO Load Profile loads a CTRIO Profile File to a CTRIO Output resource 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.

CTRLDPR Parameters • CTRIO#: specifies a specific CTRIO module based on a user defined number (see CTRIO Config) • Output#: specifies a CTRIO output to be used by the instruction • File#: specifies a CTRIO profile File number to be loaded • 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 File# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V,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 K0-255; See DL205 V-memory map - Data Words See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map

Page 577

Chapter 5: Intelligent Box (IBox) Instructions

CTRLDPR 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 Load Profile IBox will load File #1 into the working memory of Output 0 in CTRIO #1. This example program requires that you load CTRLDPR_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–355

Page 578

Chapter 5: Intelligent Box (IBox) Instructions

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

CTRLDPR Example (cont’d)

5–356

Rung 3: If the file is successfully loaded, set Profile_Loaded.

DL205 User Manual, 4th Edition, Rev. A

Page 579

Chapter 5: Intelligent Box (IBox) Instructions

CTRIO Read Error (CTRRDER) (IB-1014)

230 240 250-1 260 DS5

Used

HPP

N/A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A • 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 B • Error Code: specifies the location where the Error Code will be written C Parameter DL205 Range D

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# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . V

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

DL205 User Manual, 4th Edition, Rev. A

5–357

Page 580

Chapter 5: Intelligent Box (IBox) Instructions

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

CTRRDER Example

5–358

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 Read Error Code IBox will read the Extended Error information from CTRIO #1. This example program requires that you load CTRRDER_IBox.cwb into your Hx-CTRIO module.

DL205 User Manual, 4th Edition, Rev. A

Page 581

Chapter 5: Intelligent Box (IBox) Instructions

CTRIO Run to Limit Mode (CTRRTLM) (IB-1011)

230 240 250-1 260 DS5

Used

HPP

N/A

1 2 3 4 5 6 7 8 9 10 11 12 CTRRTLM Parameters • CTRIO#: specifies a specific CTRIO module based on a user defined number (see CTRIO Config 13 Ibox) • Output#: specifies a CTRIO output to be used by the instruction 14 • Frequency: specifies the output pulse rate (20Hz - 20kHz) • Limit: the CTRIO's Input(s) must be configured as Limit(s) for this function to operate A • 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 B • 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 C • Error: specifies a bit that will turn on if the instruction does not complete successfully D 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.

DL205 User Manual, 4th Edition, Rev. A

5–359

Page 582

Chapter 5: Intelligent Box (IBox) Instructions

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

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

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

CTRRTLM Example

5–360

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 Run To Limit Mode IBox sets up Output #2 in CTRIO #1 to output pulses at a Frequency of 1000 Hz until Limit #0 comes on. This example program requires that you load CTRRTLM_IBox.cwb into your Hx-CTRIO module.

DL205 User Manual, 4th Edition, Rev. A