Home

Preliminary Chapter 3: Configuring the CTRIO with Workbench

image

Contents

1. 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 555559959 The module s four input terminals represented by the A B C and D boxes on the left side of this dialog If you are wiring your counter input to Configure 10 x terminal you will want to select channel 2 Outputs Inputs Function 1 Channel 1 tab near the top of this TEETE window and click Counter in box A d Discrete on 1 1 Quad Counter Bl Countin TUU E Counter Reset 1 Select count up or count down A Value button in the Function 1 box toggles between Up and Down counting VES Click the button labeled Up or Down to see the change to the opposite count direction At this point you have four decisions to make regarding your input at 1A Discrete on Ch1 Fn1 Pulse Step Dir Pulse Cw CCw Discrete on Ch Fn1 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 Boer graphical representation of a pulse toggles between these choices Pulse Catch Edge Timer Dual Edge Timer Preliminary Counter I O User Manual 3 7 Chapter 3 Configuring the CTRIO with Workbench
2. main dialog click the button labeled Pulas CW DW Config I O This causes the Configure Contin X IO dialog to open Te a Deasete on ril Notice that the module s four input terminals are represented by the A B C and D boxes on the left side of this l Function 2 dialog If you are wiring your quadrature counter inputs to terminal 1 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 Pulte Cw on ChT F ril At this point you have three decisions to coma make regarding your quadrature input 1 A multiplier can be applied to the quadrature input to increase its resolution Select 1x 2x or 4x 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 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
3. Floating Point etc Seven data types are available including f Integer rounded BCD to make values more easily used by f Integer x10 1 implied decimal place C nteger 100 2 implied decimal places BED x10 1 implied decimal place BED 100 2 implied decimal places Cancel lt Back Next gt 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 Haw Value 0 counts check the meaning of your Position Settings 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 Scaled Value 300 Position Scaling Calculator Enter a raw count value ta confirm scaling configuration Haw Value 250 counta Scaled Value 75 uds Cancel lt Back Finish p e JJ M E NT3Y 7 EH F 79 7 Preliminary r Counter I O User Manual 3 1 7 Chapter 3 Configuring the CTRIO with Workbench 2 rv I Rate Scaling Counter To select Rate Scaling click the radio button beside the word Rate mr Now click Next to move to the Output Settings dialog Hate Scaling Wizard Output Settings On the Ou
4. Non scaled Counter Raw Input Value Not Used Scaled Counter Scaled Value pos or rate Non scaled Counter with Capture Scaled Counter with Capture Non scaled Timer In Progress Time us Scaled Timer In Progress Time us Pulse Catch Not Used 3 26 Counter I O User Manual Preliminary Chapter 3 Configuring the CTRIO with Workbench Function Status and Control Bit Definitions The table below defines the bit locations for control and status of user configured functions The functions are configured in CTRIO Workbench and can be controlled or monitored from your control program EBC users see note on page 5 20 Bit Offsets V memory Offsets WinPLC amp EBC DirectLOGIC PLCs Control Bit Bit Offsets V memory Offsets 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 24 1 9 17 25 20 1 20 9 21 1 21 9 Pulse Catch Output Pulse State O 8 16 20 0 20 8 21 0 21 8 Pulse Catch Start 1 9 17 25 20 1 20 9 21 1 21 9 Preliminary Counter I O User Manual 3 27 Chapter 3 Configuring the CTRIO with Workbench Preliminary Runtime Changes to the Preset Tables 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
5. CPU Link you will enter the main Link Enabled Help window of CTRIO Workbench Here you 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 Select Link od Ostet combate iie tN 250 CTRIO ECOM Successful Connection Run Mode CTRIO Workbench 10 x Current PLC Curent Module Module Status Contig Operations Type Mame Write Module Module Mode Comm Link Description Sein Mas 3942 us Head Module CTRIO ether Scan Time 11433 us ol Write File Comm Status Booter version 1 0 1 5 Version 1 3 1 Read File Module Configuration Utility Functions Select PLC Installed Modules Config ID AUN Quad Counter wA eset Out O Diserete on Chi Frid Preset Mode Chi Fnz Out 1 Unassigned Special Ch2 Fnl Out 2 Unassigned Update Firmware Hescan Ch2 Fn2 Out 3 Unassigned Hardware Info Contig Information Total Blocks 256 120 Map Inputs V2 Outputs 2100 Free Blocks 248 Preset Total Preset Tables 1 Contig Status Game as Module Pulse Profiles Total Pulse Profiles 0 Preliminary Counter I O User Manual 3 3 Chapter 3 Configuring
6. CTRIO with Workbench a 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 Edel o Fg Free Run Interval Scaling Timer To select Interval Scaling click the radio button beside the word Interval Now click Next to move 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 Units E to 4 characters appropriate value for Interval Scaling for o r example RPM fps flow etc Seven data types n 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 C BCD x10 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 ee RU enter the counts per unit of time and Counts unit iil min the time base A scale offset is also Scale Offset 0 provided to adjust the
7. D van 5 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 tab near the top of this Cancel window and click Pulse Catch in box C Edge Timer Dual Edge Timer deo 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 width you want to capture Transients below this width will not be recorded Set this value by typing the desired value in the Minimum Width 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 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 a 25555559959 3 1 0 Counter I O User Manual Preliminary 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
8. Preliminary 3 8 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 Counter I O User Manual Preliminary 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 other channel The C and D inputs are available to control the quadrature input counting The C and D inputs can be used 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 confiquration must be compatible For wiring information see Chapter 2 Configure 10 X Channel To select the Quad Counter function first open CTRIO Workbench On the AOURETET pem pj 1 Counber l te
9. 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 use the non PLC offsets in column one Data Type and Offset Addr for Inputs Suites z a z a T opaz ramar pwo oupas trs pwo Lm osco Wn bYO 7 n424 Ch 1 Fn 1 Status Low Byte bY8 15 Ch 1 Fn 2 Status High Byte bY16 23 Ch 2 Fn 1 Status Low Byte 25 Word 2 bY32 59 Output Status Low Byte 26 Word 2 bY48 55 n427 Output 2 Status E Byte Word 2 bY56 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 I O Map dialog you can print out a report of memory loctions in use z a Preliminary Counter I O User Manual 3 25 Chapter 3 Configuring the CTRIO with Workbench Preliminary 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 CTRIO Workbench Confiqured Function from Parameter 1 Parameter 2 CTRIO Workb h Contents Contents DWORD DWORD
10. an upward pulse to the trailing edge of the next upward E 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 Preliminary Counter I O User Manual 3 11 Chapter 3 Configuring the CTRIO with Workbench Preliminary 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 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 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 Dual Edge Timer at Function 1 Dual Edge Timer at Function 2 Risin
11. offers only those scaling options that are appropriate for your input selections We discuss the scaling wizard in greater detail later in this chapter Preliminary Counter I O User Manual 3 9 Chapter 3 Configuring the CTRIO with Workbench Preliminary 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 ES Channel 1 Channel 2 Outputs To insure proper operation the field Lern EE device wiring and the configuration mem ae i must be compatible For wiring Cuad tapis Diserate on Chi Fd information see Chapter 2 El To select the Pulse Catch function first open CTRIO Workbench On the main dialog click the button labeled Config I O This causes the Input Settings Function 2 Pulse Step Dir dialog to open din en Discrete on Chi r2 Notice that the module s four input pusen terminals are represented by the A B
12. 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 Complete 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 e F WinPLC amp EBC DirectLOGIC PLCs Enable Output 32 40 48 56 26 0 26 8 27 0 27 8 39 47 55 63 26 7 26 15 27 7 27 15 Bit X Offsets V memory Offsets WinPLC amp EBC DirectLOGIC PLCs Count Capture Complete Bit 58 46 54 62 22 6 22 14 25 6 25 14 Timer Capture Start 39 47 55 65 22 7 22 15 25 7 25 15 3 28 Counter I O User Manual Preliminary Chapter 3 Configuring the CTRIO with Workbench Runtime Changes Cont d Parameter 1 Word Parameter 2 Word Parameter 5 DWord DirectLOGIC n7 1 1 DirectLOGIC n 12 DirectLOGIC n70 n 1 decimal decimal decimal 1 4 DirectLOGIC n 10 Hex BCD Pwiemmonon w If appropriate for Entr
13. the CTRIO with Workbench Preliminary Choose Program Mode to Configure the CTRIO Module On the CTRIO Workbench main window eT 75 a single button toggles between Run Current Module Module Status Config Operations Name Mode and Program Mode The Module Module Mode Progam _Wite Modue Mode indicator will tell you which mode Description EEUU Read Module 5 Time your module is in You can configure the A M wite Fie P n yp s ooter version 1 0 1 module offline in either Run Mode or 787 ReadFie Program Mode but to save your confiauration to the module you must ick Wr we E click Write Module which is only active Quad Counter w Reset Dut Discrete on Ch1 Fn1 in Program Mode Preset Mode Chl Fn2 Dut 1 Unassigned Clicking on the Config I O button causes the Configure I O window to appear From the Configure I O 0O PEB window you can select the primary input functions your application requires and assign those functions to Config Operations appropriate terminals am Write Module You also select subordinate functions on the Configure 5 IO dialog Primary and subordinate functions are explained gt 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 ret
14. vsa 1 o o 1 0 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 5 decimal 05 Hex 0000 0011 binary in the high byte and 10 decimal OA Hex 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 represent the remainder of the Command Code in the low byte High Byte Low Byte 15 eJ 2 02 to 9 e 7 6 5 4 js 2 150 eso ojojojoj ojoyjJrj so ojojoj 1jo 1 o 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 V2501 The Low Word is V2500 and the High Word is V2501 Preliminary Counter I O User Manual 3 31
15. CTRIO WORKBENCH amp PROGRAM CONTROL Chapter 3 Configuring the CTRIO with Workbench Preliminary 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 for DirectSOFT32 users It runs from within DirectSOFT32 CTRIO Workbench requires DirectSoft52 Rel 3 0C Build 71 or later The other version 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 Direc
16. FF 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 Parameter 2 as a x10 integer one implied decimal position To achieve a 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 3 30 Counter I O User Manual Preliminary Chapter 3 Configuring the CTRIO with Workbench 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 0010 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 15 14 13 2 9 7 Je 8 2 o
17. 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 configured input and output function Control Bit 0 Control Bit 0 Control Bit 0 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 Output 0 Pulse Step Output 1 Pulse Direction Dutput 2 Unassigned Output 3 Discrete on Ch1 Fn2 Command Command Command Command information that can be altered during runtime and the bits that indicate successful transfers or errors 3 20 Parameter 1 ey Parameter 2 x Parameter 3 Enable Output Goto Position Direction Process Command Dutput 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 Parameter 2 Hl 3 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 2 x Parameter 3 Enable Output Goto Pos
18. O 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 Preliminary 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 Contig 10 dialog Module Configuration Counter Function The CTRIO module supports up or down counting using single track 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 used for Reset Inhibit or Capture These functions are more fully explained later in this chapter TENET To insure proper operation the field device wiring and the configuration must be compatible For wiring information see Chapter 2
19. de to perform the Write Module operation If you do not perform the Write Module operation or a Write File operation your configuration will be lost upon quitting Workbench This applies to all changes to the module configuration 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 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 Preliminary Counter I O User Manual 3 5 Chapter 3 Configuring the CTRIO with Workbench Preliminary Supported Functions 3 6 Reset Inhibit and Capture If desired two subordinate functions can be selected for the 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 CTRI
20. e 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 I O button to arrive at the dialog below E Notice that the window has a tab for nus Channel 2 Sugar each Channel Channel 1 and Channel 2 offer the same Quad Counter configuration options Pulse Step Dir Pulse Cw CCw A maximum of one quadrature input or two single track encoder inputs is Ogg possible for each channel The input options are listed by function Four boxes labeled A B C Function 2 Pulse Step Dir Pulse CW 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 the input type and then clicking OK For example you might click on SL 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 Program Mo
21. g 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 ae Notice that the module s four input terminals are By cnt S represented by the A B C and D boxes on the E Free Pun 7 left side of this dialog If you are wiring your inputs to terminals 1C and 1D 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 3 1 2 Counter I O User Manual Preliminary Chapter 3 Configuring the CTRIO with Workbench Dual Edge Timer cont d At this point you have three m 24 VDC decisions to make regarding your input at 1 or ID Waa 1 First designate the pulse A C or D edges you want to measure i between D or C 2 The Free Run option is assigned by clicking in the appropriate box If your application ca
22. g 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 Up Counter button appears only after you select one of the Counter or Timer functions I eene The Scaling Wizard options are different for the Counter functions as compared with the Rest o 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 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 x C None No scaling provided button is selected Position aa iPositiori Converts raw counts to engineering Counter Typically used for units of distance scaling 1S appropriate for oe units using linear interpolation User Quad counter position size etc provides min raw max raw min me asuring dist ance scaled and max scaled values positio n or size Rate scaling C Rate Converts count rate to engineering Counter Typically used for units of speed flow units by sampling count no
23. ition Direction Process Command Dutput Enabled Off Position Loaded Off Output Active Off Output Stalled Off Command Error Off Command Complete Off Parameter 1 Es 2 3 Enable Output Goto Position Direction Process Command Dutput Enabled Off Position Loaded Off Output Active Off Output Stalled Off Command Error Off Command Complete Off Preliminary Chapter 3 Configuring the CTRIO with Workbench Discrete Outputs The CTRIO module offers four discrete outputs numbered O 1 2 Outputs and 5 The outputs respond to presets assigned by the user in the Configure IO dialog Unassigned Pulse Step Dir Pulse Cw CCw Discrete on Ch1 Fn1 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 can all be assigned to one function or they can be grouped within functions and within channels in any manner selected by the user Discrete on Chi Fri 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 is designated for a discrete output P Once the output selection is made a new button adil a appears on the Configure IO dialog The button is Preset labeled as shown to the right The leading
24. lls 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 T M 1 2099909999099 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 Preliminary Counter I O User Manual 3 13 Chapter 3 Configuring the CTRIO with Workbench Preliminary Reset 1 and Reset 2 Reset 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 single track 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 1D Those options are Capture and Inhibit see below Reset 2 is available if you have p Sene selected to use terminal 1B for a counter input Reset 2 will reset the Reset counter connected to terminal 1B Value Two distinct types of hard resets are available One is an edge reset The a C OUTPUTS other is a level reset The Edge Reset sets the current count to zero on the specified edge rising or falling of the reset pulse see upper e
25. ng 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 T ables create a new table click Add or Edit This will open the Edit Preset Table dialog Output Preset Tables Preset Tables Build a Preset Table by adding Edit Preset Table preset entries one at a time i File Number 1 Click Add Preset or Edit Preset RESET t200 to open the Edit Preset Entry Name EE E Ju dialog Scales Move Down Sort Ascending Sort Descending OF Cancel Edit Preset Entry On the Edit Preset Entry dialog select one of the six Output Functions Set the preset value in Output Function engineering units if the signal has been scaled Set Set MERE the preset value in raw count if the signal has not C Reset DU been scaled We discuss scaling elsewhere in this Pulse On chapter Pulse ON and Pulse OFF require a Pulse f Pulse Of Pulse Time Time setting The Pulse Time is set in msec 1 000 Toggle ms Reset Count sec msec For a description of the Output Functions see page 3 21 To set a particular table as the default table use Cancel the Default Output Settings dialog described on page 3 21 3 22 Counter I O User Manual Preliminary Chapter 3 Configuring the CTRIO with Wo
26. 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 Discrete on Ch1 Fn1 On the Output Settings dialog select Use Single Preset We will discuss Preset Tables later in this LUIS chapter Now click OK to arrive Select Default Preset Command at the Edit Preset Entry dialog 2 Maid Six output functions are available as shown in the C Load Table figure below Set the preset value in engineering Table Number units if the signal has been scaled Set the preset value in raw count if the signal has not been scaled Single Preset We discuss scaling elsewhere in this chapter Pulse ON SET atO feel Edi Preset and Pulse OFF require a Pulse Time setting The Pulse Time is set in msec 1 000 sec 1 msec Scales Unscaled Edit Preset Entry Cancel Output Function Preset t Set Output Function Definitions ro p feet Set Writes output ON maintained C Pulse On Pulse Off Pulse Time Reset Writes output above OFF aggie ms Pulse On Writes output ON for specified time Peset Count Pulse Off Writes output OFF for specified time Toggle Changes state of output Cancel Reset Count Resets the count to Preset Value Preliminary Counter I O User Manual 3 21 Chapter 3 Configuring the CTRIO with Workbench Preliminary Creati
27. r 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 Preliminary Counter I O User Manual 3 23 Chapter 3 Configuring the CTRIO with Workbench 2 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 EP 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 25 Output 2 Status Low Byte Word bX56 65 Output 5 Status High Byte For DirectSOFT32 users the I O Map dialog displays the exact memory locations in use by the CTRIO module Within the I O Map dialog you can print out a report of memory loctions in use 3 24 Counter I O User Manual Preliminary minary Chapter 3 Configuring the CTRIO with Workbench Memory Map for Outputs from CPU to CTRIO
28. result by a Interval Scaling Calculator constant amount Unit Time Base Enter a pulse interval in microseconds to confirm scalin This window contains a calculator to PI M double check the meaning of your EE Rate Settings Enter a value into the minutes Pulse Time fi S e e gs Raw Value field to see the equivalent purs value in engineering units Cancel lt Back Finish Counter I O User Manual 3 1 9 Chapter 3 Configuring the CTRIO with Workbench Preliminary Using the Monitor I O Dialog 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 below 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 IB IC D Input State A IB IC D Functions BH or ort Off Off Off Off Off Quad Counter Unconfigured Unconfigured Unconfigured Input Functions Current Count 0 Register 0 Register 0 Register 0 include all DWord Me Register 1 Register 1 Register 1 Word and status bit 1 Status Bit 0 Status Bit 0 Status Bit 0 data passed from the Status Bit 1 Status Bit 1 Status Bit 1 CTRIO module to the CPU Output
29. rkbench I O Map Dialog On the main dialog click the I O Map button to open the I O i 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 Preset Tables Total locations for data transfers from the CTRIO module to the CPU and data transfers from the CPU to CTRIO module The example shown below indicates the V memory locations of a DirectLOGIC PLC ici i i Ed Inputs 10 Map Input Data Output Data Map Starting V location for inputs 2000 v Enable Starting V location for outputs v21 00 Enable Input Range v2000 2023 Dutput Range v2 00 2127 Input Functions Output Functions Up Counter Ch1 Fn2 Dual Edge Timer Input Data CTRIO gt Controller Input Data CTRIO gt Controller Input Data CTRIO gt Controller Input Data CTRIO Controller 2000 2001 Scaled Units 2004 2005 Previous Time 2002 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 CTRIO 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 you
30. rmalizing to Quad counter velocity etc Rate is preferred over 1 1 1 desired timebase and scaling to Interval for count frequencies over 1S appropriate for velocity engineering units 5kHz although it may be used for lower frequencies with increased sample RPM flow or similar rate Men based measurements You ara ene ic 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 high 10kHz 1 avi ng thi S window with acceptable accuracy Cancel 3 1 6 Counter I O User Manual Preliminary re Position Scaling Counter iminarwv Chapter 3 Configuring the CTRIO with Workbench To select Position Scaling click the radio button beside the word poepen Position Now click Next to move to the Output Settings dialog i On the Output Settings dialog you will Scaling Wizard Output Settings notice the field for engineering units Enter an appropriate value for Position Scaling for Engineering Units EH upto 4 characters example yards feet meters cubic inches Dutput Format
31. tLOGIC Seach View Tools Debug Mindo CPU D2 DCM H2 ECOM H2 EBC H2 WPLC Your PC Connect communicates with the CTRIO module through the CPU Offline Setup slot device port or through a port on a DCM or ECOM module Memory Map Several paths are available to start CTRIO Workbench Lum qe 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 Tad DirectSOFT32 Launch Window Double click the Workbench icon as you would do to open a project users will find CTRIO Workbench at Start Programs AutomationDirect Tools CTRIO Workbench Version 1 0 0 1 Description CTRIO configuration utility Counter I O User Manual Preliminary amp 2 a I rn Fa ad m Is Vos y Chapter 3 Configuring the CTRIO with Workbench Linking to CTRIO Module in DirectSOFT32 If you are linked to your CPU through DirectSOFT52 CTRIO Workbench will P start via the existing link If you are Seen disconnected from your PLC and start E p inpar Em 250 Cancel CTRIO Workbench you will be prompted C 25 port 2 Lance Add to establish a link to your CTRIO module B 50pati E dit Once you are connected to your PLC or Delete PLC network and you select the desired pss
32. the current n 1 nj 2 count into the 2nd DWord register Parameter 2 The Capture feature is available with a single track Counter on input A or a Quad Counter on inputs A and B Capture Capture 1 represents a hard wired input to terminal D An appropriate field device must be connected to the designated terminal to perform the capture function ami md 10 10 Fo The Capture feature must be enabled in your control program or on the Monitor dialog 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 1A 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 i d om om 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 Preliminary Counter I O User Manual 3 15 Chapter 3 Configuring the CTRIO with Workbench Preliminary Introduction to the Scaling Wizard Scalin
33. the next pulse or the 24 VDC OUTPUTS falling edge of one pulse to the falling edge of the same pulse or the falling d edge of one pulse to the falling edge of the next pulse Encoders proximity sensors etc can be connected to input C and or input D on either channel or both channels Cal To insure proper operation the field device wiring and the configuration must be compatible For wiring information see Chapter 2 QOUOUOOCOOoO 1 To 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 C and D boxes on the left side of this Function 1 dialog If you are wiring your input to Is Edpe terminal 1C you will need to select the Ex fir Dicite on CHUA Channel 1 tab near the top of this window and click Counter in box C rj Emm qure At this point you have three decisions to make regarding your input at 1A Function 2 1 First designate the pulse edges you want to measure between There are four choices You can measure Dual Edge ime Dwele on the time from the leading edge of the Ems a 5 E dge Times upward pulse to the leading edge of the next upward pulse or from the trailing edge of
34. tput Settings dialog you will notice the field for engineering units Enter Engineering Units up to 4 characters an appropriate value for Rate Scaling for example RPM fps flow etc Seven data types are available including BCD to make values more easily used by DirectLOGIC PLCs Output Format Floating Paint 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 E 8 Y Cancel lt Back New gt Scaling Wizard Rate Settings Click Next to open the Rate Settings Unit Definition dialog It is here that you enter the counts ees EX senses CUES per unit of time and the time base A scale t Enter a count value and sample offset is also provided to adjust the result Scale Offset 0 time in ms to confirm scaling by a constant amount i SEU DU Unit Time Base This window contains a calculator to milisepands Counts in sample 5000 double check the meaning of your Rate seconds TES oof m Settings Enter a value into the Raw Value minutes DEOS EY hours field to see the equivalent value Sealed Value 300 engineering units Calc Options Data Smoothing Cale Interval IE ms Pe d Cancel lt Back Frin 3 1 8 Counter I O User Manual Preliminary Prelin ninar ryy Chapter 3 Configuring the
35. urning 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 can 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 3 4 Counter I O User Manual Preliminary Chapter 3 Configuring th
36. xampel 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 Edge Reset E A QOOQOOUOOOOUOQ 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 Soft resets are also available from LInassianed 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 T Reset Reset Value Reset 1 and Keset 2 represent hard wired inputs to terminal C or D An appropriate field device must be connected to the designated terminal to perform the reset function Level Reset E DODOSO 3 1 4 Counter I O User Manual Preliminary 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 24 VDC OUTPUTS Capture 1 snapshots
37. y 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 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 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 Preliminary Counter I O User Manual 3 29 Chapter 3 Configuring the CTRIO with Workbench Preliminary 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 O

Download Pdf Manuals

image

Related Search

Related Contents

取扱説明書 - 日立の家電品  Epson WorkForce WF-7525  A NX CAD Resource library for factory layout and robot simulation  2 - De'Longhi Cookers La cottura per passione  取扱説明書 - Dynabook  Samsung SGH-C100 Benutzerhandbuch  Welcome to a New Level of Interactive Communication  ACME SS111 loudspeaker  MFP1-C - Primo  OWNER`S MANUAL FOR EQB  

Copyright © All rights reserved.
Failed to retrieve file