Home
H2-CTRIO Version 1.1 User Manual
Contents
1. 1M 2M YO Y1 Y0 Y2 Y0 Y3 CO C1 ESN CO C2 i C0 Jumper Settings IM to 2M Share supply voltage between Ch 1 amp Ch2 YO to Y2 Y5 f Share commons between high or low side of outputs when isolation is not required CO to CI C2 C5 Counter User Manual 2 3 Installation and Field Wiring Wiring the CTRIO Module 2 4 The CTRIO module is a two channel device Each channel accepts four optically isolated input signals which share the same common Input circuits can be wired with either polarity without changing the module configuration Channel 1 inputs can have the opposite polarity from channel 2 inputs The module is confiqured using CTRIO Workbench to accommodate the user s application The function of each input is defined in the configuration of the module counting timing reset etc Refer to Chapter 5 to determine what input confiqurations are possible Field device wiring must be compatible with the module configuration Each output circuit is optically isolated from the other outputs Output commons are independent but can be tied together using internal jumpers All four discrete outputs are available to be energized in response to any of the inputs See the notes below for further details about power source considerations circuit polarities and field devices Also refer to the specifications on pages 1
2. oc 3 14 Introduction to the Scaling Wizard 3 16 Scaling Wizard Examples Tor Counter Functions 3 16 Position Scaling Counter eie as cerner 3 17 Important Note About Rate Measurement Applications 3 18 Rate Scaling Co unler ec n me e e UR gc de dede d 3 18 Using the Scaling Wizard with Timer Functions 3 19 Interval Scaling Timer ER HERES SEER Rees 3 19 Using the Monitor I O Dialog 3 20 Discrete OUPS 3 21 Creating and Using the Output Preset Tables 3 22 VO Map Dialog 2 43 395 3 9 2431 999 9 3 23 CTRIO High Speed Counter Module Table of Contents Chapter 4 Program Control Memory Map for Inputs from CTRIO to CPU 4 2 Memory Map for Outputs from CPU to CTRIO 4 3 CTRIO Input Parameter Definitions 4 4 Function Status and Control Bit Definitions 4 5 Runtime Changes to the Preset Tables 4 6 Runtime Changes Contd sasssa d Par Q PH ee 4 7 Entry Number and Entry Type for Edit Table Entry Command 4 7 Edit Level Response Command cas soe sce RE Gang 3E 4 8
3. Function 2 E Dual Edge Timer 5 Edge 1 In ap E 2 u igned ulse Edae Tim Pulse Step Dir Pulse Discrete on Ch1 Fn2 FreeRun 3 1 2 Counter User Manual Chapter 3 Configuring the CTRIO with Workbench Dual Edge Timer cont d At this point you have three 424 VDC decisions to make regarding your input at or ID Wee 1 First designate the pulse edges you want to measure between 2 The Free Run option is assigned by clicking in the appropriate box If your application calls for velocity measurements to be taken at the commencement of some event do not use Free Run If your application calls for velocity measurement on a continuous basis you should use Free Run f e ur om om um Dm nil C or D D or C 5 The last remaining decision to be made is about scaling Clicking the button with the tape measure symbol starts the Scaling Wizard We discuss the scaling wizard later in this chapter The Scaling Wizard is intelligent in that it offers scaling options that are appropriate for your input selections Counter User Manual 3 13 Chapter 3 Configuring the CTRIO with Workbench Reset 1 and Reset 2 Reset 1 is available only if you have selected a Counter or Quad Counter as t
4. Dutputs Edge Timer Pulse Pulse Dir Pulse Left Right Discrete on Chl FreeRun Discrete on At this point you have three decisions to make regarding your input at 1A Function 2 Unassigned Unassigne Pulse Catch Pulse Pulse Dir Pulse Left Right Discrete on Chl Fn1 l First designate the pulse edges Ic you want to measure between There are four choices You can measure the time from the leading edge of the p upward pulse to the leading edge of the next upward pulse from the trailing edge of an upward pulse to the trailing edge of the next upward BENI pulse or from the leading edge of an upward pulse to the trailing edge of the same pulse or finally from the leading edge of a downward pulse to the trailing edge of the same downward pulse Dual Edge Timer Discrete on The last option could be restated as timing from the trailing edge of an upward pulse to the rising edge of the next upward pulse 2 The Free Run option is assigned by clicking in the appropriate box If your application calls for velocity measurements to be taken at the commencement of some event do not use Free Run If your application calls for velocity measurement on a continuous moving average basis you should use Free Run Counter User Manual 3 1 1 Chapter 3 Configuring the CTRIO with Workbench 5 The last remaining decision to
5. Inputs Function 1 Up Counter F Countin TUU e Counter Reset Value Quad Counter Discrete on Ch1 Fni mj Function 2 E Reset m 1 Pulse Step Dir E Pulse Cw CCw Discrete on Ch1 Fn1 Discrete on Ch1 Fni Is Pulse Catch Edge Timer Dual Edge Timer Cancel Counter User Manual 3 7 Chapter 3 Configuring the CTRIO with Workbench 5 The Reset value is assigned by clicking and typing a value in the data input field This value is for hardwired resets When the hardwired reset is activated the count value returns to the reset value 4 The last remaining decision to be made is about scaling Clicking the button with the ruler symbol starts the Scaling Wizard We discuss the scaling wizard later in this chapter The Scaling Wizard is intelligent in that it offers scaling options that are appropriate for your input selections 2 8 Counter User Manual Chapter 3 Configuring the CTRIO with Workbench Quad Counter The CTRIO module supports quadrature counting using quadrature encoders as inputs Connect your encoder to input A and input B on either channel A second quadrature endcoder can be connected to the A other channel The C and D inputs are available to control the quadrature B input counting The C and D inputs can be used for Reset Inhibit or Capture These functions are more fully exp
6. 400mA Max at 5V from 205 Base Power Supply Internal Power Consumption Maximum of 6 Watts All I O in ON State at Max Voltage Current 32 F to 140 F 0 to 60 C Op cn ating Environment Humidity non condensing 5 to 95 2500V I O to Loqic 1000V amonq Input Inputs Counter User Manual 1 3 Introduction Specifications cont d 1 4 CTRIO Output Specifications 4 pts independently isolated current sourcing or sinking open collector 2 channels 20Hz 25kHz per channel pulse Pulse output control and direction or cw ccw pulses 50kHz if using only 1 channel Voltage range Maximum voltage Output clamp voltage Maximum load current Maximum load voltage Maximum leakage current Inrush current OFF to ON response ON to OFF response ON state V drop External power supply Overcurrent protection Thermal shutdown Overtemperature reset Target position range Duty cycle range Configurable Presets 5VDC 56VDC 36VDC 60VDC 1 0A 36VDC 100pA 5A for 20ms less than less than module function 2 1 billion to 2 1 billion 51 bits sign bit 1 to 99 in 1 increments default 50 a each output can be assigned one preset or b each output can be assigned one table of presets one table can contain max 128 presets max predefined tables 255 User supplied power source required for stepper drive configurations Counter User Manual Introdu
7. Cont d Command Code Word Parameter 1 Word Parameter 2 DWord Parameter r Load Profile from ROM aq New Position Pulse Output at Velocity 5 Duty Cycle 0 to 99 Number of Pulses e Run Frequency Edge amp _ Pulse Output to Limit 20Hz 25KHz Duty Cycle 0 to 99 Compare Function amp Desired Input Function 20Hz 25 2 Duty Cycle 0 to 99 Value A value of 0 will generate a duty cycle of 50 Fields above separated an amp indicate a code with different definitions for each byte high byte and low byte For example to enter the Pulse Output to Limit command set the high byte of the Word Parameter 2 to the edge you wish to terminate the output pulses see definition following and set the low byte to the desired duty cycle In order to process a command first the program must load the Command Code and required DWord Word and bit parameters Then the program should drive the Process Command bit to a 1 and look for the CTRIO to acknowledge the command with the Command Complete bit Finally the program should remove the Process Command bit and set the Enable Output bit when appropriate If the Command Error bit is received the CTRIO was unable to process the command due to n illegal value in either the Command Code or parameter files DWord and Word values for pulse outputs are considered unsigned integers Counter User Manual
8. 1 1 Chapter 4 Program Control Pulse Output Profiles Loading a profile is the easiest method for pulse output motion control Command Code 0001 All the characteristics of acceleration run frequency and total pulse count are entered in the CTRIO Workbench Pulse Profile entry window The profile can be a Trapezoid Velocity S Curve or program controlled Dynamic Positioning Edit Pulse Profile B EC x File Humber 1 Mame Trapezoid S Curve Symmetrical 5 Curve Dynamic Positioning Total Pulses 10000 ue p Start Freq 2n Hz 1000 Hz Positioning Freq 1000 Hz Total Time 10 98 sec End Freq 20 Hz Time Accel Time 1 000 mz 1000 ms Decel Time 1 000 ms Decel Time 1001 ms Calculate Profile Profile Stats Total Entries m Blacks Used 1 Cancel Status Registers status bit from CTRIO N PLC Example 1 V2000 PLC Deni des 2 V40600 Val as Base Input Address Base Input Address Output Enabled V2022 0 V40622 0 or C440 ON when Enable Output is ON Position Loaded V2022 1 V40622 1 or C441 Used for Dynamic Positioning Output Active V2022 4 V40622 4 or C444 ON when Output is Pulsing CTRIO Output Fault Output Stalled V2022 5 V40622 5 or C445 should never be ON ON if Command or Parameters Command Error V2022 6 V40622 6 or C446 ca ali ON if Module Receives Process Command Complete V2022 7 V40622 7 or C447 Combiand 1 2 Counter User Manual Chapt
9. to perform the reset function 3 1 4 Counter User Manual l l al ar s a s al E Reset Value QOOQOOUOOOOUOGo Reset Reset Value Edge Reset QOOGOUOOOOUOo Level Reset Chapter 3 Configuring the CTRIO with Workbench Capture 1 Capture 1 is available only if you have selected a Counter or Quad Counter as the primary function For example if you have chosen either counter function on terminal 1A you will have an option of using terminal 1D for a capture signal 324 VDC OUTPUTS Capture 1 snapshots the current n 1 nj n 2 count into the 2nd DWord register Parameter 2 The Capture feature is available with a single ended Counter on input A or a Quad Counter on inputs A and B ves w al rl ar Capture Capture 1 represents hard wired input to terminal D An appropriate field device must be connected to the designated terminal to perform the capture function S O CCC o The Capture feature must be enabled in your control program or on the Monitor dialoq in CTRIO Workbench Inhibit 1 Inhibit 1 is available only if you have selected a Counter or Quad Counter as the primary function For example if you have chosen either counter function on terminal 1
10. 1 0 Ch1 Fn2 Dual Edge Timer Out 1 Unassigned Suppo rted CPUs Ch2 Fni Out 2 Unassigned Sse You Can use the CTRIO module with chatna 043 Ud Hardware Info 5 Config Information conventional CPUs D2 240 or 02 250 masmi aa Clear Config our Windows based WinPLC CPU Free Blocks 248 Preset Tables Total Preset T ables 1 module or PC based control strategies ummm FusePeme Mn 0 SEEN using the H2 EBC interface module The CTRIO module plugs into any I O slot of any DirectLogic 205 base except slot O slot O is available for the CTRIO module when using the WinPLC CPU Slot O is the I O slot adjacent to the CPU Multiple CTRIO modules can reside in the same base provided that the power supply is adequate CTRIO modules may be placed in secondary local bases connected via ERM to EBC The CTRIO module is designed to work with incremental encoders or other field devices that generate pulses or edges Typical Counter Applications cut to length piece counting positioning e g flying punch PLS programmable limit switch replacement e g gluing application stepper motor drive control valve control rate monitoring for speed and or flow 1 2 Counter User Manual Introduction Specifications General Module Type Intelligent Modules Per Base Limited only by power consumption None I O map directly in PLC V memory or PC Field Wiring Connector Standard removable terminal block
11. 1 terminals 1A 1B 1C and 1D The same circuitry is also present at the corresponding e 4 Channel 2 terminals 2 T A 1A O an OA 1M The same circuitry is present at the corresponding Channel 2 terminal Counter User Manual 2 5 Installation and Field Wiring Output Schematic The CTRIO outputs are individually isolated DC switches that can be used to break the high or the low side of a DC load Cn where n 0 1 2 3 CTRIO Output 5 to36VDC Yn Load O Load 5 to 36VDC O Cn where n 0 1 2 3 CTRIO Output Yn 2 6 Counter 1 User Manual Installation and Field Wiring Quadrature Encoder Wiring Example Step Amplifier Step Amplifier Counter User Manual 2 7 Installation and Field Wiring TTL Quadrature Encoder Field Wiring 5VDC 2 8 Counter User Manual TTL Input Wiring Y 0 D 2M Os amp S Z MO 2 o Q 0906620 9 30VDC Installation and Field Wiring NPN General Purpose Transistor C TTL Device 10K HFE gt 100 0 1W 10 TTL Device 10K HFE gt 100 0 1W 10 6 TTL Device 10K HFE 100 0 1W 1096 d TTL Device Counter User Manual 2 9 THIS PAGE INTENTIONALLY LEFT BLANK CTRIO WORKBENCH In Th
12. 7 V40676 7 or Turn ON until Command Complete Command C1747 status bit is returned see step 4 When OR command has been k V2022 7 diro s accepted clear Process Command bit step 3 Enable V40676 0 or Output V2056 0 EM C1740 Turn to start pulses Output V2022 4 V40622 4 or ON while pulsing OFF when limit Active Status C444 has stopped pulsing While Run Velocity to Function Input Value is running Run Frequency Step 2 and Duty Cycle Step 5 may be actively adjusted simply by writing the variable Example To run a Pulse Output at 30 duty until Ch2 Fn 1 is at 100 000 write 100 000 to DWord Parameter 3 set the desired Frequency in Word Parameter 1 set Word Parameter 2 to 12E Hex Hex IE 50 Decimal set the proper direction bit then load and execute Command Code 7 and finally set the Enable Output bit The Output will Pulse until Ch2 1 5 Input DWord Parameter 1 gets to 100 000 Counter User Manual 1 9
13. Addressing Conventions oa ee 4 9 with V memory Examples for DirectLOGIC PLCs Example for Bit accessed Data in PLC CPUs 4 9 Addressing High and Low of Word Parameters 4 9 Addressing High and Low Word of DWord Parameters 4 9 Pulse Output Commands 524 4444 62444464 RARE TUER URL 4 10 Status Registers status bit from CTRIO 4 12 Pulse OutDULE Profiles u tren 4 12 Control Registers control DWords Words and bits 4 13 Running Trapezoid or S Curve Profile YO amp Yl 4 14 Trapezoid or S CUrVe 4 14 Dynamic Positioning 422425452201 ret 9 8 bie OUR o oo dome 4 15 Dynamic Positioning using the YO and Y 4 16 Pulse Qulpult at Velocity sa 4 17 Velocity control on CTRIOYO8 amp Y1 2i sen 4 17 Pulse Output to Input Limit SE 4 18 Run Velocity on YO amp until Discrete Input Limit 4 18 Pulse Output to Position sses 4 19 Run Velocity until Function Input 4 19 CTRIO High Speed Counter Module 111 THIS PAGE INTENTIONALLY LEFT BLANK
14. CTRIO Controller Input Data CTRIO Controller 2000 2001 Scaled Units 2004 2005 Previous Time V2002 2003 Raw Value 2006 2007 Timer 2020 1 At Reset Value 2020 8 Captured Start 2020 9 Capture Complete Output Data Controller CTRIO Output Data Controller CTRIO Output Data Controller CTRIO Output Data Controller 2124 1 Reset V2124 8 Enable Capture Cancel Report The I O Map also allows you to enable these data transfers You will need to enable the data transfers in order to use the CTRIO data within your control program or to make dynamic changes to the stored CTRIO data or configuration values The third important function of the I O Map is to identify in a table form the memory locations where raw or scaled input values are located and where status and control bits appear Counter User Manual 3 23 THIS PAGE INTENTIONALLY LEFT BLANK PROGRAM CONTROL In This Chapter Memory Map for Inputs from to CPU 4 2 Memory Map for Outputs from CPU to 4 3 Input Parameter Definitions 4 4 Function Status and Control Bit Definitions 4 5 Runtime Changes to the Preset Tables 4 6 Addressing Conventions 4 9 Pulse Output Commands 4 10 Pulse Output Profiles
15. Output to Position command Command 7 allows Pulse Outputs that terminate when a specific Input Function Value is obtained Set Word Parameter 1 to the desired Frequency As with Velocity and Run to Limit Set Word Parameter 2 Low Byte to the Duty Cycle and the High Byte to the Compare Function as defined below The Compare Function field defines either greater or less than any of the four CTRIO Input Function Values The compare will take place against Input DWord Parameter 1 of the selected Function The CTRIO reads command code bit 12 to determine if the compare is greater than or equal or less than It reads bits 9 and 8 to determine the Input Function to use for comparison Input Function Bits 11 8 Comparison Bits 15 12 Ch 1 Fn 1 0000 Greater Than or Equal 0000 Ch 1 Fn 2 0001 1Hex Less Than 0001 1Hex Ch 2 Fn 1 0010 2Hex Ch 2 Fn 2 0011 5 Run Velocity on CTRIO until Function Input Value PLC PLC PLC Status Control PLC Status ls trol Inputs Name Outputs Base Addr V2030 Set to 6 V2040 V40660 Pulse at velocity until Function Input Limit Set initial run frequency V2041 VA0661 20 2 25000 2 Select discrete input edge high byte low byte duty cycle 1 99 Parameter 2 V2042 V40662 Example rising input 1D at Duty 45 set this parameter to 212D Hex r s 2051 V40651 Function DWord value for V2030 V40650 comparison V40676 1 or Set ON or OFF for Process V2056
16. Set ON or OFF for Set Direction V2056 4 V2022 7 C1741 Direction of Rotation Enable V40676 0 EN Output V2056 0 C1740 Turn ON to start Tum ON to start pulses Enable V2022 0 m O or EL ON module is Status C440 confirming Enable Output When ON module is Output V2022 4 V40622 4 or pulsing OFF with Enable Status C444 Status ON profile has completed Turn OFF when pulse V2056 0 Ve RE status is OFF and Enable Output C1740 Status is ON To re launch a loaded profile repeat steps 5 9 1 4 Counter I O User Manual Chapter 4 Program Control Dynamic Positioning For Dynamic Positioning only the motion limits of Min Frequency Max Frequency and Max Acceleration come from the CTRIO Workbench Profile After loading a Dynamic Position Profile per the above paragraph setting the Enable Output causes the CTRIO module to assume a position of O pulses The program should write the next target position in DWord Parameter 5 and set the Load Seek Position bit This will cause the CTRIO to set both the Pulses Active and the New Position Loaded bit and begin output pulses with the proper direction setting to achieve the new position The program can monitor the state of the Pulses Active bit and the New Position Loaded bit to determine when the new position has been attained The New Position Loaded status bit will always follow the s tate of the Load Seek New Position control bit This status bit should be used t
17. Wizard you can select None Position or Rate No scaling Scaling type Function Used with Notes is accomplished if the None Scaling Wizard Select Scaling Type C None No scaling provided button is selected Position iPositiori Converts raw counts to engineering Counter Typically used for units of distance scalinq IS appropriate for units using linear interpolation User Quad counter position size etc N provides min raw max raw min me asuring dist ance scaled and max scaled values position or size Rate scaling C Rate Converts count rate to engineering Counter Typically used for units of speed flow units by sampling count normalizing to Quad counter velocity etc Rate is preferred over 1 1 1 desired timebase and scaling to Interval for count frequencies over IS app ropriate for velocity engineering units although it may be used for lower frequencies with increased sample RPM flow or similar rate Hi based measurements You e Pas a Converts count time to engineering Edge Timer Like Rate Interval is typically used for m ay want to read the Notes units by measuring pulse width Dual Edge Timer units of speed flow velocity etc converting to frequency normalizing Interval Timer Interval is preferred over Rate when the and other i nfo rm ation befo re to desired timebase and scaling to count frequency is lower than 5kHz engineering units although it may be used as hi
18. _ 4 12 Chapter 4 Program Control Memory Map for Inputs from CTRIO to CPU The following table shows which memory locations are used for memory transfers from the CTRIO module to the CPU The starting memory location is defined by the user in the I O Map within CTRIO Workbench If you are using the D2 240 or D2 250 CPU you will use the memory address offsets in the second column If you are using an H2 WinPLC in the CPU slot you will use the non PLC offsets in column one Address for E Inputs Format Bytes L DirectLOGIC bXO 7 Ch 1 Fn 1 Status Low Byte 2 Word 16 25 Ch 2 Fn 1 Status Low Byte 21 Word 2 bX32 59 Output O Status Low Byte 22 Word 48 55 n 23 Output 2 Status Low Byte Word bX56 65 Output 5 Status High Byte For DirectSOFT352 users the I O Map dialog displays the exact memory locations in use by the CTRIO module Within the 1 0 Map dialog you can print out a report of memory loctions in use 4 2 Counter User Manual Chapter 4 Program Control Memory Map for Outputs from CPU to CTRIO The following table shows which memory locations are used for memory transfers from the CPU module to the CTRIO The starting memory location is defined by the user in the I O Map within CTRIO Workbench If you are using the D2 240 or D2 250 CPU you will use the memory address offsets in the second column If you are using an H2 WinPLC in the CPU slot you will
19. be made is about scaling Clicking the button with the tape measure symbol starts the Scaling Wizard We discuss the scaling wizard later in this chapter The Scaling Wizard is intelligent in that it offers scaling options that are appropriate for your input selections Dual Edge Timer The Dual Edge Timer is designed to measure from a pulse edge on one incoming signal to a pulse edge on another incoming signal The user selects whether to measure between rising edges falling edges etc The choices are summarized in the tables below Rising edge of C to rising edge of D Rising edge of D to rising edge of C Rising edge of C to falling edge of D Rising edge of D to falling edge of C Falling edge of C to rising edge of D Falling edge of D to rising edge of C Falling edge of C to falling edge of D Falling edge of D to falling edge of C To insure proper operation the field device wiring and the configuration must be compatible For wiring information see Chapter 2 To select the Dual Edge Timer function first open CTRIO Workbench On the main dialog click the button labeled Config I O This causes the Input Settings dialog to open Notice that the module s four input terminals are represented by the A B C and D boxes on the E left side of this dialog If you are wiring your inputs to terminals and 10 you will need to select the Channel 1 tab near the top of this window and click Dual Edge Timer in box C or D l
20. is for H2 WPLC and H2 EBC users and it may or may not run from within the control software furnished with the WinPLC module For further information see your WinPLC s software documentation Getting Started with CTRIO Workbench 3 2 To run CTRIO Workbench an H2 CTRIO module must be installed in the base and the base must be powered up You will need to connect to a port on the DirectLOGIC Search View Tools Debug indo CPU D2 DCM 2 H2 EBC H2 WPLC Your PC 4 Connect communicates with the CTRIO module through the CPU slot device port or through a port on a DCM or ECOM r p module Memory Map Several paths are available to start CTRIO Workbench c NN DirectSOFT32 users will find CTRIO Workbench under PLC menu Tools CTRIO Workbench DirectSOFT32 users will also find Hardware Tools access to CTRIO Workbench in the Tod DirectSOFT32 Launch Window Double mi TED click the Workbench icon as you would xs do to open a project All users will find CTRIO Workbench at Start Proqrams AutomationDirect Tools CTRIO Workbench Version 1 0 0 1 Description configuration utility Counter User Manual Chapter 3 Configuring the CTRIO with Workbench Linking to CTRIO Module in DirectSOFT32 If you are linked to your CPU through DirectSOFT32 CTRIO Workbench will start via the existing link If you are disconnected from your PLC and start CTRIO Work
21. represent the remainder of the Command Code in the low byte High Byte Low Byte st 15 eJ 2 00 9 7 6 5 4 js 2 1 0 vso 110 High Nibble Low Nibble High Nibble Low Nibble Addressing High and Low Word of DWord Parameters Double Word parameters are addressed in a similar fashion to the high and low bytes of a Word Parameter For example a DWord that begins in V2500 consumes both V2300 and 2501 The Low Word is V2300 and the High Word 15 2501 Counter I O User Manual 4 9 Chapter 4 Program Control Pulse Output Commands The CTRIO module can generate Pulse Outputs based on predefined user profiles Using program control techniques the Pulse Profiles can also be changed dynamically during runtime Pulse Profiles File 2 Trapezoid 1 File 3 Dynamic Position File 4 5 Curve File 5 Symmetric 5 Curve File Drill Home Search Copy Delete Add CTRIO Workbench can create a maximum of 255 predefined Pulse Profiles The total number of Pulse Profiles available is 255 minus the number of predefined Preset Tables Pulse Profiles and Preset Tables are saved as File 1 through File 255 Based on the Workbench configuration either of the two Pulse Output channels can output Pulses and Direction or Up Pulses and Down Pulses Exit 41 0 Counter I O User Manual Chapter 4 Program Control
22. select subordinate functions on the Configure 5 IO dialog Primary and subordinate functions are explained Head Module in more detail under the heading Supported Functions cM Module Configuration Utility Functions After the configuration is created in CTRIO Workbench it must be written to the CTRIO module This is accomplished by returning to the main CTRIO Workbench window and clicking on Write Module Entering program mode takes the CTRIO module offline Input pulses are not read or processed in Program mode and all outputs are disabled DirectLOGIC CPUs will hold last value in V memory while the CTRIO is in Program Mode Choose Run Mode to Start Processing Pulses with the CTRIO Selecting Run Mode causes the CTRIO module to begin processing pulses based on the configuration you created In Run mode the CTRIO Workbench utility also allows you to monitor and verify the proper operation of inputs and outputs You can see the count change reset etc The Monitor feature is particularly useful during debugging and commissioning of a new system This feature allows you to verify that wiring and confiquration were performed correctly If you are using a DirectLOGIC CPU the CTRIO mode follows the CPU mode If the CPU is placed in Run Mode the CTRIO module will also enter Run Mode If the CPU is placed in STOP or PROGRAM Mode the CTRIO will enter Program Mode The CTRIO also responds to mode changes made in Workbench and c
23. services so we reserve the right to make changes to the products and or publications at any time without notice and without any obligation This publication may also discuss features that may not be available in certain revisions of the product This publication may contain references to products produced and or offered by other companies The product and company names may be trademarked and are the sole property of their respective owners Automationdirect com disclaims any proprietary interest in the marks and names of others Copyright 2001 Automationdirect com Incorporated All Rights Reserved No part of this manual shall be copied reproduced or transmitted in any way without the prior written consent of Automationdirect com Incorporated Automationdirect com retains the exclusive rights to all information included in this document AVERTISSEMENT Nous vous remercions d avoir achet l quipement d automatisation de Automationdirect comMC Nous tenons ce que votre nouvel quipement d automatisation fonctionne en toute s curit Toute personne qui installe ou utilise cet quipement doit lire la pr sente publication et toutes les autres publications pertinentes avant de l installer ou de l utiliser Afin de r duire au minimum le risque d ventuels probl mes de s curit vous devez respecter tous les codes locaux et nationaux applicables r gissant l installation et le fonctionnement de votre quipement Ces
24. the second preset is 1 and so forth The Entry Type is defined according to the table below Entry Type Write Output ON Set Write Output OFF Reset Pulse Output ON Pulse Output OFF Toggle Output Reset Function Counter I O User Manual 4 7 Chapter 4 Program Control 4 8 Edit Level Response Command If a Counter or Timer function is scaled to produce a rate alarm level settings can be used to trigger discrete outputs at values predetermined by the user The alarm levels can be set within CTRIO Workbench or from the user s control program Additionally a deadband percentage in tenths of a percent can be set to prevent the output from changing too frequently near the Rate Level threshold Consider a Discrete Output set to turn ON when a level gets to 100 with a 10 deadband The output will turn ON when the level gets to 100 If the level drops the output will stay on until the level drops below 90 where it will turn OFF Edit the behavior of a Discrete Output triggered by a Rate Level by using the Edit Level Response Command Command Code 20Hex The Level Behavior setting for Parameter 1 is given in the table below Level Behavior Parameter 1 for Discrete Output Contents ON when greater than Level Rate setting 0000 Hex ON when less than Level Rate setting 0001 Hex OFF when greater than Level Rate setting 0080 Hex OFF when less than Level Rate setting 0081 Hex The Deadband is written to Para
25. 2 and 1 3 for more information Notes IN9 30VDC 5 12mA OUT 5 36VDC 1 0A max per point p 2 2 0 D D D El 1 Inputs 1A 1B 1D and 2A 2B 2C 2D require user provided 9 50VDC power sources Terminals 1M and 2M are the commons for Channel 1 and Channel 2 inputs Maximum current consumption is 12mA per input point 2 Polarity of the input power sources shown above can be reversed Consideration must be given however to the polarity of the field device Many field devices are designed for only one polarity and can be damaged if power wiring is reversed 5 Outputs have one polarity only as shown above and are powered by user provided 5 56VDC power sources The maximum allowable current per output circuit is 1A Counter User Manual NPN Field Device PNP Field Device Installation and Field Wiring Sensing Circuit This drawing illustrates wiring that is typical for Channel 1 terminals 1A 1B 1C and 1D The same circuitry is also present at the corresponding Channel 2 terminals 1A O O 24VDG O A x 1 V 1M The same circuitry is present at the corresponding Channel 2 terminal CY This drawing illustrates wiring that is typical for Channel
26. A you will have an option of using terminal 1D for an inhibit signal The Inhibit 1 signal prevents the receipt of pulses into the Counter or Quad Counter input terminals The Inhibit feature is available with the A Counter or Quad Counter on each channel Inhibit as Dm al 1 QYOUCSUOSCSCOCSE Inhibit 1 represents hard wired input to terminal D An appropriate field device must be connected to the designated terminal to perform the inhibit function Counter User Manual 3 1 5 Chapter 3 Configuring the CTRIO with Workbench Introduction to the Scaling Wizard Scaling raw signals to engineering units is accomplished using the Scaling Wizard Start Function the Scaling Wizard by clicking the ruler button on the Configure IO dialog This Counter button appears only after you select one of i the Counter Timer functions East The Scaling Wizard options are different for the Counter functions as compared with the Rest D Timer functions Position and Rate Value scaling are available when you select a Counter function Interval scaling is available when you select a Timing function We will step through the dialogs used for each scaling type Substitute appropriate values to set up scaling for your application Scaling Wizard Examples for Counter Functions On the counter Scaling
27. CTRIO High Speed Counter Module Manual Number H24 CTRIO M 24 VDC OUTPUTS zT H2 CTRIO Com ua m sar sar mw sal M ANUAL REVISIONS Please include the Manual Number and the Edition both shown below when communicating with us regarding this publication Title CTRIO High Speed Counter Module Installation and Operation Manual Number H24 CTRIO M Issue Date Description of Changes Original 9 01 WARNING Thank you for purchasing automation equipment from Automationdirect com We want your new automation equipment to operate safely Anyone who installs or uses this equipment should read this publication and any other relevant publications before installing or operating the equipment To minimize the risk of potential safety problems you should follow all applicable local and national codes that regulate the installation and operation of your equipment These codes vary from area to area and usually change with time It is your responsibility to determine which codes should be followed and to verify that the equipment installation and operation are in compliance with the latest revision of these codes At a minimum you should follow all applicable sections of the National Fire Code National Electrical Code and the codes of the National Electrical Manufacturers Association NEMA There may be local regulatory or government offices th
28. INTRODUCTION TO THE CTRIO MODULE In This Chapter General Information about the CTRIO Module Specifications ss seee P Introduction General Information about the CTRIO Module The Counter I O CTRIO module is designed to accept high speed pulse type input signals and provide discrete or pulse outputs for monitoring alarm or control functions The CTRIO module offers great flexibility for m 20 applications which call for precise counting L or timinq based on input events 9 The CTRIO module has its own L 2 microprocessor and operates asynchronously 2 D with respect to the CPU The response time of 1 on board outputs is based on the module s 5 scan time not the CPU s scan time CTRIO Workbench CTRIO Workbench SEI 1 1 1 1 Current PLC Current Module Module Status Config Operations All scaling and configuration is done saa ae ae adde via a software utility eliminating the x erem omm Link need ladder programming to set up l m ether 4822 us Wite Fe eye omm Status ooter version 1 0 1 the module The software utility is MUN rte eie called CTRIO Workbench The use of srame Module Configuration Utility Functions CTRIO Workbench IS explained in Installed Modules Config ID Chapter 35 Quad Counter Out DE Monitor
29. al DL205 CPU slot devices Consideration must be given to the firmware versions of the CPU slot devices to assure their compatibility see chart below DirectSOFT32 version 3 0C Build 71 or later is required for use with the CTRIO module if the D2 240 or D2 250 CPUs are to be used The first time you power up the CTRIO module you should see the OK LED blinking The blinking LED indicates that the module is in program mode CPU and CTRIO Compatibility Chart CPU slot Device Firmware Slot Restrictions 6 CTRIO modules in 9 slot D2 240 v 3 22 or later any I O slot except bases 3 modules in smaller bases 6 CTRIO modules in 9 slot D2 250 v 1 56 or later any I O slot except O bases 3 modules in smaller bases 6 CTRIO modules in 9 slot H2 WinPLC any I O slot bases 3 modules in smaller bases 6 CTRIO modules in 9 slot I O slot except bases 5 modules in later smaller bases for applications requiring multiple CTRIO modules DirectLOGIC CPUs and dynamic access in ladder logic to CTRIO data we recommend using the D2 250 CPU D2 240 or D2 250 or H2 EBC or through WinPLC ly Counter User Manual Installation and Field Wiring Jumpers Jumpers are provided to connect input commons or outputs output commons Use of these jumpers is not necessary to set up the CTRIO module The jumpers are provided solely for convenience in wiring
30. an all be assigned to one function or they can be grouped within functions and within channels in any manner selected by the user To assign output presets begin by selecting the ouput on the Configure IO dialog The outputs are identified based on terminal number In the example to the right output terminal 0 is designated for a discrete output Once the output selection is made a new button appears on the Configure IO dialog The button is Preset labeled as shown to the right The leading numeral represents the number of the output terminal Clicking on the Preset button causes the Default Output Settings dialog to pop up Default settings are loaded on power up On the Output Settings dialog select Use Single Preset We will chapter Now click OK to arrive Select Default Preset Command at the Edit Preset Entry dialog None i Discrete on discuss Preset Tables later in this Dutputs Unassigned Pulse Step Dir Pulse Cw CCw Discrete Ch1 Fn1 Pulse Step Dir Pulse CEW Discrete Ch1 Fn1 Discrete Ch1 Fn1 Six output functions are available as shown in the C Load Table figure below Set the preset value in engineering Table Number Hos units if the signal has been scaled Set the preset value in raw count if the signal has not been scaled Use Single Preset We discuss scaling elsewhere in this chapter Pulse ON SET at feet Pres
31. an be placed in Run Mode while the CPU is in Stop or Program Mode The CTRIO module responds to the most recent change whether performed in Workbench or from the CPU The CTRIO module will not enter Run Mode if it does not have a valid configuration stored Counter User Manual Chapter 3 Configuring the CTRIO with Workbench Using the Configure IO Dialog The Configure IO dialog is the location where input and output functions are assigned to the module The choice of input and output functions determines which options are available The input function boxes prompt you with selections for supported functions The Workbench software disallows any unsupported configurations From the main CTRIO Workbench window click on the Go to PROGRAM Mode button Then click on the Config 1 0 button to arrive at the dialog below CO Notice that the window has a tab for and Channel 2 each Channel Channel 1 and Channel 2 offer the same Quad Counter confiquration options Pulse Step Dir Pulse Cw CCw A maximum of one quadrature input or two single ended encoder inputs O is possible for each channel The input options are listed by function Four boxes labeled A B C Function 2 Pulse Step Dir Pulse CCW Edge Timer and D correspond to the input Dual Edge Timer terminals on the face of the module Select the desired input function by clicking on th
32. and the bits that indicate successful transfers or errors Parameter 1 x Parameter 2 x Parameter 3 x Enable Output Goto Position Direction Process Command Output Enabled Off Position Loaded Off Output Active Off Output Stalled Off Command Error Off Command Complete Off CTRIO read of PLC outputs is gt gt Unknown lt lt Counter I O User Manual Parameter 1 gt Parameter 2 Parameter 3 x Enable Output Goto Position Direction Process Command Output Enabled Off Position Loaded Off Output Active Off Output Stalled Off Command Error Off Command Complete Off Parameter 1 x Parameter 2 x Parameter 3 x Enable Output Goto Position Direction Process Command Dutput Enabled Off Position Loaded Of Output Active Off Output Stalled Off Command Error Of Command Complete Of Parameter 1 1 x Parameter 2 x Parameter 3 x Enable Output Goto Position Direction Process Command Output Enabled Off Position Loaded Off Output Active Off Output Stalled Off Command Error Off Command Complete Off Chapter 3 Configuring the CTRIO with Workbench Discrete Outputs The CTRIO module offers four discrete outputs numbered O 1 2 and 5 The outputs respond to presets assigned by the user in the Configure IO dialog The presets are assigned based on the scaled value of an input or the raw value if it has no scaled value The four outputs c
33. at can also help determine which codes and standards are necessary for safe installation and operation Equipment damage or serious injury to personnel can result from the failure to follow all applicable codes and standards We do not quarantee the products described in this publication are suitable for your particular application nor do we assume any responsibility for your product design installation or operation Our products are not fault tolerant and are not designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of the product could lead directly to death personal injury or severe physical or environmental damage High Risk Activities Automationdirect com specifically disclaims any expressed or implied warranty of fitness for High Risk Activities For additional warranty and safety information see the Terms and Conditions section of our Desk Reference If you have any questions concerning the installation or operation of this equipment or if you need additional information please call us at 770 844 4200 This publication is based on information that was available at the time it was printed At Automationdirect com we constantly strive to improve our products and
34. bench you will be prompted to establish a link to your CTRIO module Successful Connection Once you are connected to your PLC or PLC network and you select the desired CPU Link you will enter the main window of CTRIO Workbench Here you Select Link 54 ME 250 ECOM Links 05 Sequence Address 1 COM1 zu Cancel C 250 port 2 Add Edit Delete Link Enabled Help select the CTRIO module you wish to confiqure by clicking on its slot number in the Installed Modules box If the steps mentioned above are all accomplished successfully you will be able to enter Workbench s configuration and monitoring dialogs and you will be able to toggle the CTRIO module between Program Mode and Run Mode CTRIO Workbench Current PLE Current Module Type M ame DL250 Edit Chum Comm Link Description ether Comm Status Select PLC Module Configuration Installed Modules Config Chl Frid Quad Counter wA eset Ch1 Fre Hescan Ch2 Fnz Contig Information Total Blocks 256 Map Inputs W2000 Preset Tables Total Preset T ables Contig Status _ Same as Module Pulse Profiles Total Pulse Profiles Module Status Contig Operations Module Mode Program Write Module Scan Time 3542 us Fead Module Scan Time 11433
35. codes diff rent d une r gion l autre et habituellement voluent au fil du temps Il vous incombe de d terminer les codes respecter et de vous assurer que l quipement l installation et le fonctionnement sont conformes aux exigences de la version la plus r cente de ces codes Vous devez tout le moins respecter toutes les sections applicables du Code national de pr vention des incendies du Code national de l lectricit et des codes de la National Electrical Manufacturers Association NEMA Des organismes de r glementation ou des services qouvernementaux locaux peuvent galement vous aider d terminer les codes ainsi que les normes respecter pour assurer une installation et un fonctionnement s rs Lomission de respecter la totalit des codes et des normes applicables peut entra ner des dommages l quipement ou causer de graves blessures au personnel Nous ne garantissons pas que les produits d crits dans cette publication conviennent votre application particuli re et nous n assumons aucune responsabilit l gard de la conception de l installation ou du fonctionnement de votre produit Nos produits ne sont pas insensibles aux d faillances et ne sont ni concus ni fabriqu s pour l utilisation ou la revente en tant qu quipement de commande en ligne dans des environnements dangereux n cessitant une s curit absolue par exemple l exploitation d installations nucl aires les syst mes de navigation a rien
36. ction Specifications cont d Resources Counter Timer Four 2 per 4 input channel group 1X 2X or 4X Quadrature Up Down Counter Resource Options Edge Timer Dual Edge Timer Input Pulse Catch Counter Range 2 1 billion 52 bit sign bit LED Descriptions OK Module OK 0 fowo S O xK ps atus ulses u C1 on older modules CR2m 3 H2 CTRIO 2A Ch 2 A Status Pulses 3 Out 5 CTR2 on older modules LED Definitions 1 or 2A Based on Configuration of Input A c1 or CTR2 on older modules Blinking 7 times per second A is Configured as Counter and is Changing Following State of Input A is not Configured as Counter Output LEDs 0 3 Follow Actual Output State Counter I O User Manual 1 5 THIS PAGE INTENTIONALLY LEFT BLANK INSTALLATION AND FiELD WIRING In This Chapter How to Install the Module 2 2 2 3 Wiring the Module 2 4 Solid State Input Device Wiring 2 5 Output Schematic 2 6 Quadrature Encoder Wiring Example 2 7 Stepper Drive Wiring Example 2 7 TTL Quadrature Encoder Field Wiring 2 8 2 9 Installation and Field Wiring How to Install the CTRIO Module 2 2 The CTRIO module installs into any DL205 base and it is compatible with sever
37. e functions are confiqured in CTRIO Workbench and can be controlled or monitored from your control program EBC users see note on page 3 20 Control Bit Bit Offsets V memory Offsets transfers from CPU to CTRIO WinPLC amp EBC DirectLOGIC PLCs Status Bit Bit Offsets V memory Offsets transfers from CTRIO to CPU WinPLC amp EBC DirectLOGIC PLCs Count Capture Complete Bit 0 8 16 24 20 0 20 8 21 0 21 8 Timer Capture Start 0 8 16 24 20 0 20 8 21 0 21 8 Timer Capture Complete Timing OR 1 9 17 25 20 1 20 9 21 1 21 9 At Reset Value Counting Pulse Catch Output Pulse State 0 8 16 24 20 0 20 8 21 0 21 8 Pulse Catch Start 1 9 17 25 20 1 20 9 21 1 21 9 Counter I O User Manual 4 5 Chapter 4 Program Control Runtime Changes to the Preset Tables 4 6 Presets and preset tables can be set up entirely within CTRIO Workbench You can also make runtime edits to presets from your control program To make a runtime change a series of commands must be executed which will pass new values to a preset table or call a different preconfigured table Command Codes are passed to the CTRIO module to effect the required edit Each Command Code has its own syntax and all Command Codes must be presented in a particular sequence The command code and associated parameters must be loaded into the appropriate memory locations A Process Command instruction must be passed to the CTRIO module A Command Comple
38. e input type and then clicking OK For example you might click on Counter in the A box then OK to return to the main Workbench window Once you arrive back at the main window you must click Write Module to save your selection to the module The module will need to be in Proqram Mode to perform the Write Module operation If you do not perform the Write Module operation or a Write File operation your confiquration will be lost upon quittinq Workbench This applies to all chanqes to the module confiquration Dual Edge Timer In the lower left corner of the main Workbench dialog is the Config Status indicator If the current configuration is different from the CTRIO and different from any saved files the indicator will display the word Changed If the current configuration has been written to the module or a file the message will read Same as Module Same as File or Same as Both Field devices and field wiring must be consistent with the confiquration chosen The Output functions are listed as 0 1 2 and 5 These numbers correspond to the markings beside the module s output terminals Again only supported functions are accessible It is not possible to create an illegal configuration Counter User Manual 3 5 Chapter 3 Configuring the CTRIO with Workbench 3 6 Supported Functions Reset Inhibit and Capture If desired two subordinate functions can be selected for the
39. er 4 Program Control Control Registers control DWords Words and bits PLC Example 1 V2000 PLC Example 1 V40600 ce put Men ae hot Mare Parameter 2 V2042 V40662 Counter User Manual 1 3 Chapter 4 Program Control Trapezoid or S Curve For predefined Trapezoid or S Curve profiles the program needs to prepare the Load Table command by selecting Command Code 1 and setting Word Parameter 1 to the File number of the profile example File 1 Trapezoid 1 Then the program can set the Process Command bit and watch for the Command Complete bit Then the program should clear the Process Command bit and set the Direction bit and finally the Enable Output bit to start the output pulses Clearing the Enable Output bit will always suspend pulsing and reset any profile in progress to it s beginning Once complete the profile remains loaded and can be restarted buy clearing the Enable Output changing the direction bit if desired and again setting the Enable Output Easy step examples are given for PLCs with CTRIO I O date mapped in the word and CR bit areas of CPU menmory Running a Trapezoid or S Curve Profile on CTRIO YO amp Y1 Command Set 1 2 Parameter 1 V2041 V40661 File of stored profile determined by user Turn ON until Command 5 2 d V2056 7 add Complete status is returned see step 4 When ON Profile is now 4 V2022 7 loaded clear Process Command bit step 3 V40676 1 or
40. et and Pulse OFF require a Pulse Time setting The Pulse Time is set in msec 1 000 sec 1 msec Edit Preset Entry Scales Unscaled Output Function Sel o Reset feet C Pulse On O F ion Definiti utput Function tions C Pulse Of dee Es Set Writes output ON maintained C Toggle a E Reset Writes output above OFF Reset Count Pulse On Writes output ON for specified time Pulse Off Writes output OFF for specified time Cancel Toggle Changes state of output Reset Count 5 the count to Preset Value Counter User Manual 3 21 Chapter 3 Configuring the CTRIO with Workbench Creating and Using the Output Preset Tables To create tables of presets click the Preset Tables button on the main Workbench dialog This will open the Output Preset Tables dialog To Preset Tables Copy create a new table click Add or Edit This Delete will open the Edit Preset Table dialoq Output Preset Tables Preset Tables Build a Preset Table by adding Edit Preset Table preset entries one at a time Click Add Preset or Edit Preset amber 1 RESET at 200 to open the Edit Preset Entry Name 1 4 m I dialoq recipe 1 Delete Preset 5 cales Move Down Sort Ascending Sort Descending Cancel On the Edit Preset Entry dialog select one of the Edit Preset Entry six Output Functions Set the preset value in Sic d Output Functi
41. first Counter on each channel Reset and Inhibit or Reset and Capture Capture and Inhibit use the same terminal so you cannot use both of those subordinate functions You can also access the Scaling Wizard for counting and timing applications and other configuration features The CTRIO module supports five primary input functions Counter Quad Counter Pulse Catch Edge Timer and Dual Edge Timer Each of the primary functions uses one or two terminals for making connections to field devices plus a common Three secondary input functions are also supported These functions Reset Capture and Inhibit each modify the primary input functions in some way More information is available about each of the primary and secondary functions later in this chapter Counter I O User Manual Chapter 3 Configuring the CTRIO with Workbench Input Function Selections To make function selections counter timer etc navigate to the Configuration IO dialog From the main Workbench window click the Config IO button to open the Config IO dialog Module Configuration Config Chl Counter Function The CTRIO module supports up or down counting using single ended encoders or other single ended pulse sources as inputs Encoders proximity sensors etc can be connected to input A and or input B on either channel or both channels The C and D inputs are available to modify the A and B inputs The C and D inputs can be u
42. gh 10kHz l e aving thi S window with acceptable accuracy 3 1 6 Counter User Manual Chapter 3 Configuring the CTRIO with Workbench Position Scaling Counter To select Position Scaling click the radio button beside the word s Position Now click Next to move to the Output Settings dialog On the Output Settings dialog you will Scaling Wizard Dutput Settings notice the field for engineering units Enter an appropriate value for Position Scaling for Engineering Units upto 4 characters example yards feet meters cubic inches Output Format Floating Point etc Seven data types are available including f Integer rounded BCD to make values more easily used by f Integer 10 1 implied decimal place nteger 100 2 implied decimal places BED 10 1 implied decimal place BED 100 2 implied decimal places Cancel Back Click Next to open the Position Settings dialog Scaling Wizard Position Settings It is here that you enter the span of raw counts that equates to a span of engineering units This window contains a calculator to double Minimum Value 0 counts check the meaning of your Position Settings Maximum Raw Value 1000 counts Enter a value into the Raw Value field to see the equivalent value in engineering units Minimum Scaled Value 0 yds Maximum Scaled Value 300 pdg Position Scaling Calculator Ente
43. he primary function For example if you have chosen either counter function single ended or quadrature on terminal 1A you will have an option of using terminal 1C for a hard reset signal Other options are available on terminal 10 Those options are Capture and Inhibit see below Reset 2 is available if you have m selected to use terminal 1B for a p counter input Reset 2 will reset the counter connected to terminal 1B Two distinct types of hard resets are available One is an edge reset The 24 VDC OUTPUTS other is a level reset The Edge Reset mi sets the current count to zero on the specified edge rising or falling of the reset pulse see upper exampel The Level Reset resets the count to zero as long as the reset pulse is held high or low depending on configuration When the reset pulse disappears the count resumes see lower example If the Reset options are not available in the Configure IO dialog then you have selected input functions that do not use the reset modifier A Word About Soft Resets I Soft resets are also available from D Unassioned the Monitor dialog within Workbench or by turning on a control bit in your control program Soft resets are always level resets meaning they hold the count at zero until the reset bit is turned off Reset I and Reset 2 represent hard wired inputs to terminal C or D An appropriate field device must be connected to the designated terminal
44. idth In field 5 The final decision to be made is the length of pulse the CTRIO module should send in response to the input pulse Make this setting by typing in the desired value in the Pulse Out Width field 3 1 0 Counter User Manual 5 Chapter 3 Configuring the CTRIO with Workbench Edge Timer The Edge Timer measures the time from the rising edge of one pulse to the rising edge of the next pulse or the 24 VDC OUTPUTS falling edge of one pulse to the falling edqe of the same pulse or the fallinq 9 d edge of one pulse to the falling edge of W the next pulse Encoders proximity sensors etc can be connected to input C and or input D on either channel or both channels To insure proper operation the field device wiring and the configuration must be compatible For wiring information see Chapter 2 15926255525 select the Edge Timer function first open CTRIO Workbench On the main dialog click the button labeled Config I O This causes the Input Settings dialog to open Notice that the module s four input terminals are represented by the A B TUR C and D boxes on the left side of this Inputs Function 1 dialog If you are wiring your input to a peser terminal 1C you will need to select the Channel 1 tab near the top of this window and click Counter in box C Configure 10 x
45. input B 2 The Reset Value is assigned by clicking in the data input field and typing in a value When the count is reset using any of the reset methods the count value returns to the Reset Value The reset options are described in more detail later in this chapter 5 The last remaining decision to be made is about scaling Clicking the button with the ruler symbol starts the Scaling Wizard The Scaling Wizard is intelligent in that it offers only those scaling options that are appropriate for your input selections We discuss the scaling wizard in greater detail later in this chapter Counter User Manual 3 9 Chapter 3 Configuring the CTRIO with Workbench Pulse Catch The CTRIO Pulse Catch function allows a very short duration pulse to be qualified and lengthened to a time period long enough to quarantee that it is seen by the CPU CPU scans necessarily vary with the length and complexity of the user s program A scan frequency of several milliseconds or more is common A pulse that lasts less than one millisecond is typically hard to catch during the CPU scan The CTRIO module s Pulse Catch function sees the fast incoming signal and holds its status in a status bit until the CPU can see it A discrete output can also be tied to the Pulse Out Configure 10 x a Channel 1 Channel 2 Dutputs To insure proper operation the field Lun Function 1 device wiring and the configuration mem ee
46. iring 2 5 OUIDULSCHEINGNG 426 054 oes rn 2 6 Quadrature Encoder Wiring Example 2 7 Stepper Drive Wiring Example 2 7 TTL Quadrature Encoder Field Wiring 2 8 TILI put WINING 655 669 ROS Pee se Sep 8 nde Xp s RC eS 2 9 Table of Contents Chapter 3 CTRIO Workbench What is CIRIO Workbench aiu xS RR RE EN HERE EUR 3 2 Installing CTRIO Workbench 3 2 Getting Started with Workbench 3 2 Linking to CTRIO Module in DirectSOFT32 3 3 Successful Connection USUS OP heer aes 3 3 Choose Program Mode to Configure the CTRIO Module 3 4 Choose Run Mode to Start Processing Pulses with the CTRIO 3 4 Using the Configure IO Dialog 3 5 Supported Functions di sn sr at e enews 3 6 Input Function Selections 3 7 PP 3 7 Oud Counter 3 9 PSS Cath SP 3 10 3 11 Dual Edge TimMer os acus kasaq s ba k uy PUN RES KASSE dea onan 3 12 Reser hon Ra a Eme aer Paddy ES 3 14 A Word About Soft Resets
47. is Chapter What is Workbench 3 2 Getting Started with CTRIO Workbench 3 2 Input Function Selections 2 2 c2nc0c oe aeteeteoaeucan 3 7 Introduction to the Scaling Wizard 3 16 Using the Monitor I O Dialog 3 20 Discrete 3 21 Creating and Using the Output Preset Tables 3 22 WO Map Dialog Em 3 23 Chapter 3 Configuring the CTRIO with Workbench What is CTRIO Workbench CTRIO Workbench is the software utility you will use to confiqure the CTRIO module and to scale signals to desired engineering units Workbench also allows you to perform various other functions such as switching between the CTRIO s Program mode and Run mode monitoring I O status and functions and diagnostic control of module functions The CTRIO Workbench utility ships with the CTRIO User Manual You can also download the latest version free at the Host Engineering Web site www hosteng com Installing CTRIO Workbench The CTRIO Workbench utility installs directly from its executable file Double click on the SetupCTR exe icon The install shield will step you through the installation process Two versions of CTRIO Workbench are loaded on your PC during the installation One is DirectSOFT32 users It runs from within DirectSOFT32 CTRIO Workbench requires DirectSoft52 Rel 3 0C Build 71 or later The other version
48. lained later in this chapter 252222592522 insure proper operation the field device wiring and the confiquration must be compatible For wiring information see Chapter 2 Configure 10 x Channel 1 Channel 2 Outputs To select the Quad Counter function us VERE first open CTRIO Workbench On the a Unzssianed main dialog click the button labeled Config I O This causes the Configure IO dialog to open Up Down Counter Count In 1X Pulse Step Dir Pulse Cw Discrete on Ch1 Fn1 Unassigned E Reset Discrete on Ch1 Fn1 p Value Notice that the module s four input terminals are represented by the A B C and D boxes on the left side of this Function 2 dialog If you are wiring your quadrature counter inputs to terminal 1A and 1B you will need to select the Channel 1 tab near the top of this window and click Quad Counter in box A Notice that input B is now slaved to input A Pulse Step Dir Pulse Cw CCw Discrete on Ch1 Fni me Dual Edge Timer At this point you have three decisions to make regarding your quadrature input 1 A multiplier can be applied to the quadrature input to increase its resolution Select 1x 2x or Ax 1X pulses processed on leading edge of input A 2X pulses are processed on both edges of input A 4X pulses processed on both edges of input A and both edges of
49. meter 2 as a x10 integer one implied decimal position To achieve 10 0 deadband the control program needs to write 100 decimal 64 Hex to Parameter 2 The Level Rate setting is written to Parameter 5 in the same format as Input Parameter 1 of the CTRIO Function to which this Discrete Output has been assigned Counter User Manual Chapter 4 Program Control Addressing Conventions with V memory Examples for DirectLOGIC PLCs Example for Bit accessed Data in PLC CPUs In this example the V memory location V2524 contains a value equal to 514 in decimal 514 decimal 0202 Hex 0000 0010 0000 0010 binary The bit V2524 1 refers to the 2nd to the least significant bit set to 1 in this example Likewise V2524 9 refers to bit number 9 the 10th from the least significant bit also set to 1 in this example st 15 ta 13 9 7 Je 8 vsa 2524 9 1 E V2524 1 1 E Addressing High and Low Byte of Word Parameters In the following example the V memory location V2510 contains a value equal to 5 decimal in the high byte and 10 decimal in the low byte 3 decimal 03 Hex 0000 0011 binary in the high byte and 1O decimal OA Hex 0000 1010 binary in the low byte This example could represent the Command Code Edit Table Entry The value 05 Hex would represent the File number in the high byte and the OA Hex would
50. must be compatible For wiring Gud Eau Dares on Chi Fd information see Chapter 2 To select the Pulse Catch function first E ra open CTRIO Workbench On the main dialog click the button labeled Config This causes the Input Settings Function 2 LI Pulse Step Dir dialog to open js Discrete on Chi F2 Notice that the module s four input D terminals are represented by the A B 5 Mops BI Discrete on Ch1 Fn2 C and D boxes on the left side of this dialog If you are wiring your input to terminal 1C you will need to select the Channel 1 tab near the top of this window and click Pulse Catch in box C Edge Timer Dual Edge Timer dci 25 ms Three selections must be made in conjunction with the Pulse Catch option 1 First a decision must be made whether to look for the rising edge of the pulse or the falling edge of the pulse This is a critical decision Careful attention should be paid to the type of output the field device generates If the signal voltage is normally low but a short duration pulse sends the signal to the ON L na 208 state you will want to trigger off status bit the rising edge and vice versa 2 The second decision you will need to make is the minimum D pulse width you want to capture Transients below this width will not be recorded Set this value by typing the desired value in the Minimum W
51. ne ou de communication le contr le de la circulation a rienne les quipements de survie ou les syst mes d armes pour lesquels la d faillance du produit peut provoquer la mort des blessures corporelles ou de graves dommages mat riels ou environnementaux activit s risque lev La soci t Automationdirect comMC nie toute garantie expresse ou implicite d aptitude l emploi en ce qui a trait aux activit s risque lev Pour des renseignements additionnels touchant la garantie et la s curit veuillez consulter la section Modalit s et conditions de notre documentation Si vous avez des questions au sujet de l installation ou du fonctionnement de cet quipement ou encore si vous avez besoin de renseignements suppl mentaires n h sitez pas nous t l phoner au 770 844 4200 Cette publication sappuie sur l information qui tait disponible au moment de l impression la soci t Automationdirect com nous nous efforcons constamment d am liorer nos produits et services Cest pourquoi nous nous r servons le droit d apporter des modifications aux produits ou aux publications en tout temps sans pr avis ni quelque obligation que ce soit La pr sente publication peut aussi porter sur des caract ristiques susceptibles de ne pas tre offertes dans certaines versions r vis es du produit Maraues de commerce La pr sente publication peut contenir des r f rences des produits fabriqu s ou offerts par d autres entre
52. nits 8 up to 4 characters appropriate value for Interval Scaling for r l example RPM fps flow etc Seven data types E drm are available including BCD to make values Integer 10 1 implied decimal place more easily used by DirectLOGIC PLCs Integer 100 2 implied decimal places BCD rounded BCD 10 1 implied decimal place BCD 100 2 implied decimal places Cancel lt Back Scaling Wizard Interval Settings Click Next to ope the Interval Unit Definition Data Smoothing Settings dialog It is here that you enter the counts per unit of time and Counts unit li min mas the time base A scale offset is also Scale Offset 0 provided to adjust the result by a Interval Scaling Calculator constant amount Unit Time Base Enter a pulse interval in microseconds to confirm calin This window contains a calculator to i Te M 5 double check the meaning of your n Rate Settings Enter a value into the minutes Pulse Time a h Raw Value field to see the equivalent purs ENSE value in engineering units Cancel lt Back Finish Counter I O User Manual 3 1 9 Chapter 3 Configuring the CTRIO with Workbench Using the Monitor I O Dialog 3 20 The Monitor I O dialog is accessible from the main Workbench dialog when the module is in Run Mode On the main Workbench dialog click the button labeled Monitor I O The dialog belo
53. o signal the program that the CTRIO has received the new state of the control bit Position Loaded Status Bit Pulses Active Status Bit CTRIO Dynamic Position V40622 1 or C441 V40622 0 or c440 Pulse Output State 1 1 Go To Position Acknowledged Pulsing 1 Still Pulsing Go To Position Control Bit is OFF 1 Go To Position Acknowledged Position Attained After the GoTo Position is acknowledged the program can load the next position into the DWord Parameter 5 When Pulses Active Status goes to O then setting the GoTo Position control bit will again start the output toward the new position The CTRIO moves to the new position relative to its previous position as long as the Enable Output control bit remains set Clearing the Enable Output bit will disable output pulsing and reset the current position to O Counter User Manual 1 5 Chapter 4 Program Control Dynamic Positioning using the CTRIO YO and Y1 Command Set to 1 File containing Vmin 2 Parameter 1 1 RTE Viriax and Accel Turn ON until Command LM d V2056 7 i Complete status bit is returned see step 4 When ON Profile is now 4 2 V2022 7 id m loaded clear Process Command bit step 3 Turn ON to assume O 5 Enable V2056 0 V40676 0 or position Turn OFF to Output l C1740 disable pulses and zero position When ON pulses are now 22 V2022 7 enabled and last position is retained 2051 V40662 Target position User Starts pul
54. on engineering units if the signal has been scaled Set 2 Cet Preset the preset value in raw count if the signal has not C 4 100 Reset been scaled We discuss scaling elsewhere in this C Pulse n chapter Pulse ON and Pulse OFF require a Pulse C Puke ni Time setting The Pulse Time is set in msec 1 000 Togde pe sec 1 msec For a description of the Output Me Functions see page 3 21 To set a particular table as the default table use the Default Output Settings dialog described on Cancel page 3 21 3 22 Counter User Manual Chapter 3 Configuring the CTRIO with Workbench I O Map Dialog On the main dialog click the I O Map button to open the I O Map dialog The I O Map dialog performs three important functions for users of DirectLOGIC PLCs First it gives you the opportunity to assign CPU memory E Preset Tables Total locations for data transfers from the CTRIO module to the CPU and data transfers from the CPU to the CTRIO module The example shown below indicates the V memory locations of a DirectLOGIC PLC iii Ed 10 Map X Input Data Map Output Data Map Starting V location for inputs 2000 v Enable Starting V location for outputs 21 00 v Enable Input Range v2000 2023 Dutput Range 21 00 2127 Input Functions Output Functions Up Counter Ch1 Fn2 Dual Edge Timer Input Data CTRIO Controller Input Data CTRIO Controller gt Input Data
55. prises Les d signations des produits et des entreprises peuvent tre des marques de commerce et appartiennent exclusivement leurs propri taires respectifs Automationdirect comMC nie tout int r t dans les autres marques et d signations Copyright 2001 Automationdirect comMC Incorporated Tous droits r serv s Nulle partie de ce manuel ne doit tre copi e reproduite ou transmise de quelque fa on que ce soit sans le consentement pr alable crit de la soci t Automationdirect comMC Incorporated Automationdirect comO conserve les droits exclusifs l gard de tous les renseignements contenus dans le pr sent document TABLE OF CONTENTS Table of Contents Chapter 1 Introduction to the CTRIO Module General Information about the CTRIO Module 1 2 Workbench d as wie 1 2 SUPPOSE SS PME PETS NS E EE 1 2 Typical Counter Applications Rer Eder RR VES 1 2 were D 1 3 Chapter 2 Installation and Field Wiring How to Install the Module 2 2 CPU and CTRIO Compatibility Chart 2 2 a ia ee it ware chu 2 3 Wiring the Module 9 ter Rn 2 4 PNP RE y S Suyu pyri pusu qst papa ua p us kaa S qe Mie Eq ies 2 5 NPN Field DVICE RTT Rm 2 5 Solid State Input Device W
56. put Bits 11 8 Rising 0000 OHex Ch 1C 0000 OHex Falling 0001 Ch 1 D 0001 Both 0010 2Hex Ch2C 0010 2Hex Ch2D 0011 5 Example 1 To run to a Rising Edge Limit on Channel 15 C Input at 50 Duty Cycle use Word Parameter 2 0000 Hex Duty Cycle 00 also creates 50 duty Example 2 To run to a Falling Edge Limit on Channel 2 s C Input at 20 Duty Cycle use Word Parameter 2 1214 Hex Run Velocity on CTRIO YO amp Y1 until Discrete Input Limit Inputs Outputs Bast Addr Base Addr Command Set to 6 1 Code V2040 40660 Pulse at velocity until discret input limit Set initial run ks cc ud 2 Parameteri 1 vao 1 ks cc ud 0 2 25000 2 Select discrete input edge in high byte low byte duty cycle 1 99 Parameter 2 V2042 V40662 Example rising input 1D at Duty 45 set this parameter to 212D Hex V40676 1 Set ON or OFF for 4 Set Direction Direction V2056 2056 4 20564 C1741 Direction of Rotation Turn ON until Command E d V2056 7 usd di Complete status bit is returned see step 4 When ON command has Command V2022 7 V40622 7 or been accepted clear Status C447 Process Command bit step 5 Enable V40676 0 M EM Output Vao560 0 II C1740 Turn ON to start pulses ON while pulsing OFF Output V2022 4 when limit has stopped Active Status C444 pulsing 4 1 8 Counter I O User Manual Chapter 4 Program Control Pulse Output to Position The Pulse
57. r raw count value ta confirm scaling configuration Haw Value 250 counta Scaled Value 75 uds Cancel lt Back Finish Counter User Manual 3 1 7 Chapter 3 Configuring the CTRIO with Workbench Rate Scaling Counter To select Rate Scaling click the radio button beside the word Rate cm Now click Next to move to the Output Settings dialog Rate Scaling Wizard Output Settings On the Output Settings dialog you will notice the field for engineering units Enter an Engineering Units APM up to 4 characters appropriate value for Rate Scaling for Output Format Floating Paint example RPM fps flow etc Seven data types are available including BCD to make values more easily used by DirectLOGIC PLCs Integer rounded Integer 10 1 implied decimal place Integer 100 2 implied decimal places BCD rounded BCD 10 1 implied decimal place BCD 100 2 implied decimal places gt 3 8 Y Cancel lt Back Click Next to open the Rate Settings Scaling Wizard Rate Settings dialoq It is here that you enter the counts Lite met per unit of time and the time base A scale Rate Scaling Calculator offset is also provided to adjust the result Enter a count value and sample by a constant amount Scale 0 to confirm scaling This window contains calculator to Unit Time Base double check your Ra
58. sed for Reset Inhibit or Capture These functions are more fully explained later in this chapter To insure proper operation the field device wiring and the configuration must be compatible For wiring information see Chapter 2 To select the Counter function first open CTRIO Workbench On the main dialog click the button labeled Config IO This causes the Input Settings dialog to open The module s four input terminals are represented by the A B C and D boxes on the left side of this dialog If you are wiring your counter input to terminal 1A you will want to select the Channel 1 tab near the top of this window and click Counter in box A At this point you have four decisions to make regarding your input at 1A 1 Select count up or count down A button in the Function 1 box toggles between Up and Down counting Click the button labeled Up or Down to see the change to the opposite count direction 2 Each input pulse is counted but you are free to designate whether you want the count to register on the rising edge of the pulse the falling edge or both The button with the graphical representation of a pulse toggles between these choices Channel 1 Channel 2 24 DC OUTPUTS 0 2 47 4 0 VDC 5 12m Configure 10 Ea Outputs Pulse Step Dir Pulse Cw CCw Discrete on Ch1 Fn1
59. ses with direction Go To V2056 1 V40676 1 or to obtain the new position Position C1741 relative to previous position Position ia V40662 1 or When ON Go To position Loader 444 is acknowledged Status When ON module is pulsing OFF with Position 1 V2022 4 Loaded status ON new position move has completed Go To V40676 1 or Turn OFF to be ready to To seek the next position repeat steps 7 10 4 1 6 Counter User Manual Chapter 4 Program Control Pulse Output at Velocity For motion control directly from the CPU controller program use the Pulse Output at Velocity command Command 0005 The Number of Pulses can be set to FFFFFFFF in Hex for unlimited pulse counts Leaving the Duty Cycle set to O achieves the default 5096 otherwise in can be set in 1 increments by writing this value from 1 to 99 decimal After this command is processed the Run Frequency and Duty Cycle fields can be adjusted by direct access In order to change directions from Pulse Output in Velocity mode the Enable Output bit must first be cleared which stops the Pulse Outputs Then after the new direction bit is written the Enable Output bit can be set to resume pulsing Steps PLC Address V40650and module channel 1 is used for the CTRIO base output address for all examples in this Doc Run Velocity control on CTRIO YO amp Y1 PLC Control Outp Action 40600 V2030 Command Set to 5 Set initial run frequency D
60. te Settings Enter a milliseconds Counts in sample 5000 i i 7 seconde value into the Raw Value field to see the Sample Time 002 equivalent value in engineering units pi scaled Value 200 As an example let s say you have a 1 000 pulse revolution encoder and you want to Calc Options use it to measure RPM of the encoder o shaft You would enter 1 000 for the FT Counts unit and minutes as the Time Base A check using the calculator over a sample time of 1 000 ms 1 second Cancel lt Back reveals that 5 000 counts equals 300RPM 5000 counts 1000 counts per rev 5 revolutions 5 revolutions 1 sec x 60 sec 1 minute 300 RPM 3 1 8 Counter User Manual Chapter 3 Configuring the CTRIO with Workbench Using the Scaling Wizard with Timer Functions Scaling raw signals to engineering units is accomplished using the Scaling Wizard Start the Scaling Wizard by clicking the ruler button on the Configure IO dialog Function 2 This button appears only after you select one of the Counter or Timer functions Edge Timer p Eden Free Run Interval Scaling Timer To select Interval Scaling click the radio button beside the word Interval Now click Next to move fe Interval to the Output Settings dialog Scaling Wizard Output Settings On the Output Settings dialog you will notice the field for engineering units Enter an Engineering U
61. te signal must be received and the Command Error bit must stay at zero Finally the Enable Output instruction must be passed to the CTRIO module Some changes require a combination of Command Codes so those changes must follow the steps above for each Command Code processed Bit Y Offsets V memory Offsets Control Bit WinPLC amp DirectLOGIC PLCs Enable Output 32 40 48 56 26 0 20 9 27 0 27 6 Process Command 39 47 55 65 26 7 26 15 27 7 27 15 Bit X Offsets V memory Offsets WinPLC amp EBC DirectLOGIC PLCs Count Capture Complete Bit 38 46 54 62 22 6 22 14 25 6 25 14 Timer Capture Start 359 47 55 65 22 7 22 15 25 7 25 15 Counter I O User Manual Chapter 4 Program Control Runtime Changes Cont d Parameter 1 Word Parameter 2 Word Parameter 5 DWord DirectLOGIC n7 1 1 DirectLOGIC n 12 DirectLOGIC n 0 n 1 decimal decimal decimal A DirectLOGIC n 10 Hex BCD If appropriate for Entry in ms 2 Field entries separated by an amp are to be loaded in the high byte and low byte of that word See example on next page Entry types are defined on the next page Follows format of Input DWord Parameter 1 gt Flash ROM is rated for 100 000 writes Entry Number and Entry Type for Edit Table Entry Command The Entry Number refers to the position of the preset in the table sequence The first preset is Entry Number 0
62. us Write File Booter version 1 0 1 05 Version 0 9 1 Head File Utility Functions Goto RUN Cut O Diserete an 78 Preset Mode Out 1 Unassigned Special Out 2 Unassigned Update Firmware Out 3 Unassigned Hardware Info Outputs 421 00 Clear Config Quit Counter I O User Manual 3 3 Chapter 3 Configuring the CTRIO with Workbench 3 4 Choose Program Mode to Configure the CTRIO Module On the CTRIO Workbench main window a single button toggles between Run Current Module Module Status Config Operations Name p Mode and Program Mode The Module Et Gun Module Mode Piagam _ Wite Modue Mode indicator will tell you which mode Description Read Module 5 Ti 5 your module is in You can configure the wite Fie m z Js ooter version 1 0 1 module offline in either Run Mode or NR Rexie Program Mode but to save your confiauration to the module you must ick Wr 24 c click Write Module which is only active Quad Counter w Reset Out 0 Discrete on Ch1 Fn1 in Program Mode Preset Mode Chl Fn2 Dut 1 Unassigned Clicking on the Config 1 0 button causes the Configure 1 0 window to appear From the Configure 1 0 BELL T window you can select the primary input functions your application requires and assign those functions to Config Operations appropriate terminals ram Write Module You can also
63. use the non PLC offsets in column one Lu dr wer oe NE ee oe NE om oem eit bYO 7 n 24 Ch 1 Fn 1 Status Low Byte bY8 15 Ch 1 Fn 2 Status High Byte bY16 23 n 25 Ch 2 Fn 1 Status Low Byte bY24 51 Ch 2 Fn 2 Status High Byte bY32 59 nib Output 0 Status Low Byte bY40 47 Output 1 Status High Byte bY48 55 n427 Output 2 Status Low Byte bY56 65 Output 3 Status High Byte For DirectSOFT32 users the I O Map dialog displays the exact memory locations in use by the CTRIO module Within the 1 0 Map dialog you can print out a report of memory loctions in use Counter I O User Manual 4 3 Chapter 4 Program Control CTRIO Input Parameter Definitions The following table defines the meaning of Parameter 1 and Parameter 2 under different configuration settings The functions listed in column one are defined by the user in 4 4 CTRIO Workbench Configured Function from CTRIO Workbench Non scaled Counter Scaled Counter Non scaled Counter with Capture Scaled Counter with Capture Non scaled Timer Scaled Timer Pulse Catch Counter User Manual Parameter 1 Parameter 2 Contents Contents DWORD DWORD Raw Input Value Not Used Scaled Value pos or rate In Progress Time us In Progress Time us Chapter 4 Program Control Function Status and Control Bit Definitions The table below defines the bit locations for control and status of user configured functions Th
64. uty cycle 1 99 can leave Parameter 2 V2042 V40662 O for 50 Number of pulses DWord V2031 V4 0662 4 Parameter 5 V2030 V40661 set to FFFF FFFF for no limit Set ON or OFF for Direction of Rotation Turn ON Command Complete status bit is Process V2056 7 Command Lr returned see step 4 When ON command has Command V2022 7 V40622 7 or been accepted clear Status C447 Process Command bit step 3 V40676 0 or V2056 0 C1740 Turn ON to start pulses V2056 0 V OG7G O MENS Turn OFF to start pulses C1740 While Velocity Control is running Run Frequency step 2 and Duty Cycle step 5 may be actively adjusted simply by writing the variable V40676 7 or C1747 V40676 1 or 5 Set Direction V2056 4 C1741 Counter User Manual 4 1 7 Chapter 4 Program Control Pulse Output to Input Limit The Pulse Output to Limit Command 6 can be used for Home Search routines where a relatively low frequency is used to seek a CTRIO discrete input The CTRIO input must be assigned for Limit by the CTRIO Workbench utility As with Pulse Output at Velocity set Word Parameter 1 to the desired frequency Word Parameter 2 Low Byte to the Duty Cycle and the High Byte to the Edge to Seek The Edge to Seek field reads Word Parameter 2 bits 15 and 12 to determine the edge s on which to terminate Output Pulses and bits 9 and 8 to determine which CTRIO Input terminal to use Edge s Bits 15 12 CTRIO In
65. w will appear The Monitor I O dialog is divided into two functional areas Input Functions and Output Functions Just below the Windows title bar you will see tabs to Monitor 1 0 x Input Functions Output Functions Channel 1 Channel 2 switch between Input Functions and Output Input State A B C D Input State A B C 10 Functions or Off Off Off Off Quad Counter Unconfigured Unconfigured Unconfigured Input F unctions Current Count Register Register Register include all DWord Register 1 Register 1 Register 1 Word and status bit Me Status Bit Status Bit Status Bit data passed from the Status Bit Status Status CTRIO module to the CPU Output Functions include all DWord Word and control bit data passed from the CPU module to the CTRIO The data displayed under the Input Functions tab includes the current status of each confiqured input and output function Control Bit Control Bit Control Bit Reset Count Control Bit 1 Control Bit 1 Control Bit 1 CTRIO read of PLC outputs is gt gt Unknown lt lt Monitor 1 0 X Input Functions Output Functions The fields displayed under the Output Functions tab includes all configuration Dutput Pulse Step Dutput 1 Pulse Direction Dutput 2 Unassigned Output 3 Discrete on Ch1 Fn2 Command Command Command Command information that can be altered during runtime
Download Pdf Manuals
Related Search
Related Contents
資料2:想定される交通事故のケーススタディ Peavey Rage 108 User's Manual KitchenAid KECC568GBT1 Cooktop User Manual 2. Installation - Atel Electronics Copyright © All rights reserved.