Home

USER MANUAL

image

Contents

1. gt use UP DOWN to select from OP1 to OP8 then press SEL SEL Only for bur mode the Gate parameter is a ig Off iL gt End number from 2 to 250 upon 250 On z trg gt IPO gt gAt non UP DOWN x x Ptt oe se P 1 sev se P 1 UP DOWN SEL A Y 4 PLE Y x IP8 IP8 DEREN SEL Set up pulse delay time or M Et d E L gt encoder count as in Section ea 73 1 Set up pulse width time or lid U L encoder count as in Section upon 7 3 1 gt P Set up retrigger time or encoder d rEt count as in Section 7 3 1 UN Enc H gt Fl F O gt F g 5 upon TI SEL SEL SEL T 4bur FI HFOHFgHFE of F F H Fr F P 4 NN UP DOWN SEL Bi d SEL Lo da by E n d HFP GARDASOFT 8 Ethernet Setup You may need to ask your network administrator for advice about setting up the Ethernet connection Ethernet set up is not affected by cold booting the CC320 8 1 Connection The Ethernet link uses a 10 base T connection on an RJ45 connector The CC320 will usually be connected to a network switch or hub or router It is also possible to connect it direct into the network port on a PC by using a swapover cable 8 2 IP Address The CC320 needs an IP address to communicate over Ethernet There are two ways to get an IP address either a fixed address configured in the unit or using D
2. 8 2 2 Setting DCHP or an IP Address from the Keypad The DCHP mode or a Fixed IP address can be configured from the Ethernet Demo application which can be downloaded from the CC320 page at www gardasoft com GARDASOFT Communication All the features below are implemented in a demonstration program available from www gardasoft com 8 2 3 Automatic Sensing The CC320 will send out a message on three events On power up When address is received or renewed by DHCP When enquiry message is received On the first two events the message is broadcast On the third it is a reply to a single IP address An enquiry message is a UDP packet from source port 30310 destination port 30311 with the message body Gardasoft Search 8 bit ASCII 13 characters The message output by the CC320 is a UDP packet from source port 30311 destination port 30310 It is formatted as Gardasoft CC320 000000 111111111111 22222222 8 bit ASCII 44 characters where 000000 the serial number of the unit 111111111111 the MAC address in 6 HEX bytes 22222222 the IP address in 4 HEX bytes For example for CC320 serial number 12345 IP address 192 168 1 103 MAC address 00 0B 75 01 80 99 the packet will contain Gardasoft CC320 012345 000B75018099 C0A80167 GARDASOFT 9 Webpage Configuration The CC320 has a small webserver inside so that it can be configured from a standard web browser such as
3. 6 4 Cold Boot A cold boot function is available to reset the CC320 to a known state The unit can be cold booted as follows Press and hold the SEL and DOWN buttons when powering up the unit Sending an Ethernet command Pressing a button an internal webpage When the unit is cold booted it is set to the following state IPO free running trigger is set up as a 1Hz internal trigger The unit is set up for no encoder input OPI triggers from IP1 delay for 100ms then pulse for 100ms OP2 triggers from IP2 delay for 100ms then pulse for 100ms OP3 triggers from IP3 delay for 100ms then pulse for 100ms 4 triggers from IP4 delay for 100ms then pulse for 100ms OPS triggers from IPS delay for 100ms then pulse for 100ms OP6 triggers from IPO delay for 100ms then pulse for 100ms OP7 triggers from IPO delay for 200ms then pulse for 100ms OPS triggers from IPO delay for 300ms then pulse for 100ms GARDASOFT 6 5 Configuration Form Before configuring the CC320 work out all the values and fill in a copy of the form below This form is available on the CC320 page at www gardasoft com Gate Input Pulse Delay Pulse Width complete Retrigger Time Tick when Free running timer period Encoder mode GARDASOFT 7 Keypad Configuration The CC320 is set up using the push buttons and display on the front of the unit The set up is non volatile so the CC320 will resume the same operation after a
4. 30 9 1 MAIN PAGES A 30 92 CHANNEL CONFIGURATION PAGES essere enne enne enn enne nnne nnne 30 10 UDP AND TCP IP CONFIGURATION eee eee eee eee seas etas eta setae etas e testas e tne taaee 31 10 1 COMMUNICATION DSi xen pene I RIO SU Laer ved 31 10 2 COMMAND STRUCTURE ETENE ER OSEA HEFTE EYE FUERTE ERE HA 31 10 3 COMMAND e e p C Ue E CER EE ves Pete 32 10 4 COMMAND SUMMARY s 52 2 36 V WEN eser 37 EO DU 38 GARDASOFT 1 Disclaimer Except as prohibited by law All hardware software and documentation is provided on an as is basis It is essential that the user ensures that the operation of the product is suitable for their application The user must ensure that incorrect functioning of this equipment cannot cause dangerous situation or significant financial loss to occur Gardasoft Vision Ltd and Gardasoft Products Ltd will not accept any liability for consequential loss of any kind All trademarks acknowledged Hardware software and documentation are Copyright 2007 Gardasoft Products Ltd Hardware manufactured by Gardasoft Vision Ltd under license 2 Safety 2 11 Please read this before using the CC320 family of products If in doubt contact your distributor or Gardasoft Vision The CC320
5. 6 3 4 Pulse Burst A sensor on IP1 detects product presence Four images need to be taken from one camera using four different lights at 40ms intervals OP1 OP2 OP3 OP4 are used to output triggers to turn on the four lights in sequence OPS is used to trigger the camera four times GARDASOFT gt 5 S a 2 50 iG Ale E 2 gE S E 1 Oms 40ms 0 0 1 40ms 40ms 0 0 1 80ms 40ms 0 0 1 120ms 40ms 0 0 1 40ms 100us 0 0 OPI to OP4 are pulsed for 40ms in sequence As each one is pulsed OP5 is also pulsed for a short time to trigger the camera Gate Input 4 specifies four pulses IP1 40mS 40m 40mS 40ms OP5 Hes Hes Hes Hes 6 3 5 Simple FIFO Mode A sensor on detects product presence After a delay triggers a camera There may be several products between the sensor and the camera The CC320 needs to store each of the triggers and then output a pulse after the correct delay GARDASOFT Output Mode Input Gate Input Pulse Delay Pulse Width Retrigger Time Flags 10 seconds 100us 0 F 16 OP1 H 6 3 6 A sensor detects product presence After a delay triggers a camera Image processing software processes the image which can take a variable length of time and then sends a pass fail message to the CC320 The pass fail is re synchronised t
6. each input is shown on an LED next to the connector The inputs have a common negative connection in two groups of four Opto Coupled Input Details NE Power supply 12V to 24V Gu POWER Power supply lin 1k S Pl Input 1 positive 8 A x O 1K IP2 Input 2 positive IP3 Input 3 positive 1 4 Input 4 positive Operating Conditions COMI Common negative for inputs 1 2 3 4 locii mA 5 Vp 24V Logic 1 IP5 Input 5 positive 54 Digital Outputs GARDASOFT The state of each output is shown by an LED indicator next to the connector The operational details are shown in the table below Open Drain Output Details POWER GND OUTPUT x8 The voltage across the output must not be greater than 24V and the output can only sink up to 50mA If the output is shorted to a voltage higher than 5V then the output may be damaged Do not draw more than 50mA from the VE connections as this will affect the internal operation of the controller Connector GNDI OPI OP2 OP3 4 VE GND2 OPS OP6 7 OP8 VE Function Common OV for outputs 1 2 3 4 Output 1 open drain Output 2 open drain Output 3 open drain Output 4 open drain Low power regulated output Maximum source current 50mA Common OV for outputs 5 6 7 8 Output 5 open drain Output 6 open drain Output 7 open drain Output 8 open drain Low power regulated outp
7. must not be used in an application where its failure could cause a danger to personal health or damage to other equipment If the equipment is used in a manner not specified by the manufacturer the protection provided by the equipment may be impaired 2 1 2 Electrical The user must ensure that the potential difference between any combination of applied signals does not exceed the supply voltage WARNING Higher voltages may cause a danger to personal health The CC320 does not have complete tracking isolation of inputs and outputs Transients caused by inductive loads must be suppressed external to the CC320 GARDASOFT 3 Getting Started Read the sections on Safety and Operation and check the CC320 fulfils your requirements Mount the CC320 as described in Mechanical Fixing using a DIN rail or the mounting holes Connect the CC320 as in the section on Connections When the CC320 powers up it should show two alternating lines on the display to indicate that it is operating properly Three indicator LEDs on the outputs should be pulsing in sequence every second Check that inputs and outputs are working correctly as described in Troubleshooting If required connect Ethernet to the CC320 and set it up according to the Ethernet section Read the section on Operation Use the keypad a web browser or the CC320 demo program available from www gardasoft com to configure the unit Visit www gardasoft com for Application Not
8. power cycle 7 1 Startup On power up the CC320 will display 8 8 8 to test the display is working then 320 followed by the version number eg 001 and then will be ready for operation To show that the unit is operating normally a moving pattern is drawn on the display 7 2 Cold Start In the unlikely event that the non volatile memory becomes corrupt the CC320 may Ras not start up properly In this case the memory can be cleared by powering up UP DOWN he CC320 while holding d h the while holding down the SELECT and DOWN buttons The OP2 _ Setup an CC320 will display COL for about 2 seconds while the memory is cleared 7 3 Configuration To configure the controller from the 8 554 J keypad press and hold SEL for 1 second OP1 will be displayed Set The overall structure of keypad Enc gt configuration is given to the right mode UP DOWN lt The UP and DOWN buttons are used to EA Set up change the selection and to change SEL gt Ethernet numeric values The SEL button is used to confirm a selection and move to the UP DOWN lt Set up next item When configuration is free complete End is displayed SEL gt running timer See the section on the Ethernet for setting up IP addresses 7 3 1 Setting Numeric Values When the CC320 display
9. triggered to the next time The mode should be set before the retrigger time For example RR4 10ms Output 4 won t accept another trigger until 10ms after the previous one Set the internal free running timer RB1 p p Period of timer The internal timer is set to run at the specified time period For example RB1 1ms Set period to 1ms 1000Hz RB1 3s Set period to 3s once per 3 seconds RB1 40 Set period to 40ms 25Hz If the period is zero then the internal timer is turned off Set encoder mode REe 0 to turn encoder off for a one wire encoder 2 for a two wire encoder Sets the encoder type Set an output GARDASOFT RVe v c which output channel 1 to 8 0 to set the output to a logic 0 logic 1 if O flag is set to set the output to a logic 1 logic 0 if O flag is set Sets an output to a given logic level This is a temporary override which will be cancelled the next time the output is pulsed or if its configuration is changed If the O configuration flag is set for an output the the output will be inverted Read change the encoder count EN Read the encoder count ENO c Adjust the encoder count backwards EN1 c Adjust the encoder count forwards This command returns VL and the encoder count For example the reply will be VL200 if 200 encoder counts have been received since the CC320 was turned on The count is a 32 bit unsigned number so it will wrap to 0 when it reaches 2 ENO adjusts t
10. 2 VISION CC320 Trigger Timing Controller USER MANUAL Revision 07 Gardasoft Vision Ltd Castle Acres Elsworth Cambridge CB23 4JQ UK Tel 44 1954 200343 Fax 44 1954 204343 Web www gardasoft com GARDASOFT T DISCLATMER fsicasisceiccvcecetsnetssesecassenssenssseseuncsecccencedeceusesesaseosssesensbeccaseess sesteusescassasesesencsesesn 4 PEE Y 00 deb Y 4 3 GETTING STARTED onte one enero aa rossner roor rra sE kE S EE oC rS E 5 4 MECHANICAL FIXING 6 5 CONNECTIONS dena ean roce sone te EE enn cens keen ESS 7 5 1 GENERAT DL 7 52 POWER SUPPLY reete A e ie 7 53 DIGITAL INPUT Sari a riti a sE eR LET AR 7 54 DIGITAL OUTPUTS ixi PR e E T E 8 6 CQPERATION 9 6 1 INPUT MODES 6 2 OUTPUT MODES Ae 6 3 EXAMPLES 13 6 4 Corp 6 5 CONFIGURATION FORM 20 7 KEYPAD CONFIGURATION sl 7 1 STARTUP eee secas 21 3 2 COLD STAR To Tera 21 7 3 CONFIGURATION 52 5 terer SER EXE NE ERE ERE VERE SERIAN ER REN ERE LEEREN iria 21 8 VETHERNE 0d 9 04 DI Lam 26 8 1 CONNECTION EFE IRR 26 8 2 ADDRESS reine ci i E EXE ERE ERR ERE TENERE REDE YER RE 26 9 WEBPAGE CONFIGURATION
11. 500 encoder pulses 14 5M 14500000 encoder pulses GARDASOFT Encoder values can be up to 1 000 000 000 Time periods can be from 0 1ms to 100 seconds in steps of 0 1ms Note that parameters in USA UK format so that one half is written 0 5 not 0 5 The command codes and their meaning are described below The single upper case letter codes for the parameters are also shown followed by lower case letters denoting the numeric argument Error number Reason Err 1 A parameter value is invalid Err 2 Command not recognised Err 3 Numeric value is wrong format Err 4 Wrong number of parameters Err 17 Can t save settings to EEPROM Any changes made using Ethernet commands are not saved permanently until the AW command has been issued 10 3 Commands Show the firmware version VR Outputs the version number of the firmware for example 001 Clear Configuration CL Clears the configuration to the cold boot state Save Configuration AW Saves the configuration to non volatile memory When the CC320 is turned off and on this configuration will be restored Show Configuration ST The current configuration is shown The first line gives the encoder mode and the internal trigger timing Then the configuration of each of the outputs is given one per line The flags are shown as lower case letters if not set and upper case if set Example output from this command is No encoder trigger period 1 000s
12. HCP Most networks use a DHCP server If there is a PC on the network You may be able to find out whether a PC on the same network uses DCHP as follows Go to Control Panel Select Network Connections Right click on Local Area Connection Select Properties e From the list select Internet Protocol TCP IP press Properties If Obtain an IP address automatically is set then DHCP is probably used However there may be an alternative fixed IP address on the Alternative Configuration tab You can find out what IP address is being used by a PC at any time by Go to Control Panel Select Network Connections Right click on Local Area Connection Select Status Select the Support tab The IP address is displayed When using a fixed IP address you must ensure that you use an IP address that is not being used by any other device on the network It is usual to keep the first three numbers of the IP address the same as other devices and to change only the last number For example if you have a network consisting of a PC IP address 192 168 1 35 and two CC320s you might give them addresses 192 168 1 201 and 192 168 1 202 For DHCP mode the CC320 acquires its IP address subnet mask and gateway address from a DHCP server Otherwise the CC320 has a fixed IP address subnet mask and gateway address 8 2 1 Setting DCHP or an IP Address from the Keypad Set DHCP mode from the keypad as follows Press and hold the SEL butt
13. Internet Explorer The IP address of the CC320 must be known see the section on Ethernet Setup Open a web browser window and type the IP address for example 192 168 1 71 of the CC320 into the URL box at the top The main page of the CC320 webserver should be shown 9 1 Main Page The main page shows general information about the CC320 and can be used to set up the Encoder mode and the Free Running Timer period Press the Submit button to update the CC320 and save the changes to non volatile memory Links are provided to the channel configuration pages 9 2 Channel Configuration Pages There is one Channel Configuration Page for each output channel All the parameters for each output channel can be set up Press the Submit button to update the CC320 and save the changes to non volatile memory GARDASOFT 10 UDP and TCP IP Configuration 10 1 Communication The CC320 can be configured via the Ethernet connection using UDP or TCP IP A demonstration program with source code can be downloaded from www gardasoft com Communication consists of commands sent by the host controlling PC All output generated by the command is returned in reply UDP or TCP IP packets The last character sent is gt greater than symbol Once this is received the host knows that the command has been completed It is recommended that the host waits for the gt symbol before sending the next command UDP communications are not guarantee
14. OP1 MD 2 IP 1 GT DL 100 00ms PL 100 00ms RT OP2 MD 2 IP 2 GT DL 100 00ms PL 100 00ms RT OP3 MD 2 IP 3 GT DL 100 00ms PL 100 00ms RT 4 MD 2 IP 4 GT DL 100 00ms PL 100 00ms RT OP5 MD 2 IP 5 GT DL 100 00ms PL 100 00ms RT 00ms iogefrp 00ms iogefrp 00ms iogefrp 00ms iogefrp 00ms iogefrp ooooo GARDASOFT OP6 MD 2 IP 0 GT DL 100 00ms PL 100 00ms RT 0 00ms iogefrp OP7 MD 2 IP 0 GT DL 200 00ms PL 100 00ms RT 0 00ms iogefrp OP8 MD 2 IP 0 GT DL 300 00ms PL 100 00ms RT 0 00ms iogefrp Enable Ethernet Messages GTm m 0 to disable Ethernet messages to enable Ethernet messages When Ethernet messages are enabled any trigger tag messages and error reports are sent to the most recent UDP or TCP address from which a command has been received Read any Error Messages GR If Ethernet messages are not enabled the last error number can be read by this command The reply is of the form Err 45 Error 45 was the last error Err 0 No error has occurred since the last GR command Set Clear the Webpage Password EY EY ascl asc2 asc3 asc4 asc5 asc6 This command sets the password required to access the webpages If EY is entered on its own then the password is cleared There are six optional parameters which are ASCII values for a password from one to six letters A value of 65 is A 66 is B etc to 90 15 Z Set Pass Fail SNc t p c whic
15. The delay is a fixed time The pulse width is a number of encoder pulses Pulsed output triggered by a digital input The delay is a number of encoder pulses The pulse width is a fixed time Pulsed output triggered by a digital input The delay and pulse width are a number of encoder pulses Pulse divider Every lt Pulse Delay gt trigger pulses the output is pulsed for lt Pulse Width gt time Pulsed output triggered by encoder pulses The output is pulsed for lt Pulse Width gt encoder pulses with the pulses separated by lt Pulse Delay gt encoder pulses The Input and Gate Input parameters are not used Burst output When triggered lt Gate Input gt pulses are output Each pulse is lt Pulse Width gt long and the time between the start of one pulse and the next is given by lt Pulse Delay gt The maximum number of pulses that can be output is 250 Outputs a constant high frequency square wave The frequency is configurable Further details available from Gardasoft Buffer an input by making the output the same signal as the input If there is gate input set then the gate input signal enables the output if the gate input is off then the output is off Flag O inverts the output and Flag G inverts the gate input The output can be delayed by a fixed time given by the lt Pulse Delay gt parameter Note that any Gate Input is applied before the delay The E flag can be set to indicate when the output changes state Sa
16. d to arrive so the host software must be able to cope with lost messages Using the GT command a host can request that a message is sent to it whenever an error occurs Commands from a host should be sent to destination port 30313 Any port number can be used for the source port Replies from the C320 will be sent to the source port A TCP IP connection will timeout and close if it is idle for more than 10 seconds The host must send regular heartbeat commands VR to keep the link open 10 2 Command Structure Several commands can be put into one command line by separating them by a semi colon A carriage return character should be sent to terminate the command line The CC320 will send any replies to the commands and then send a gt character to indicate that the command line has been completed Commands comprise a code of two letters followed by the parameters if any needed for the command Spaces in the commands are ignored Numeric parameters separated by a For a parameter which is a time period the default units are milliseconds s ms or us can be added to the end of the number to indicate seconds milliseconds or microseconds K can be used for 1000 encoder pulses and for 1000000 encoder pulses For example Parameter Meaning 0 1 0 1 milliseconds 200us 200 microseconds 0 1s 0 1 seconds 100 100 encoder pulses 15 5K 15
17. es giving additional information on the use of the CC320 Throughout this manual references to the CC320 refer to all variants in the CC320 range unless otherwise stated The symbol s is used to indicate seconds ms for milliseconds and us for microseconds GARDASOFT 4 Mechanical Fixing The CC320 does not have an IP rating and should be mounted so that moisture and dirt cannot enter the unit The operating temperature range is 5 c to 60 The CC320 can be mounted onto a panel using the threaded holes in the base see diagram below The PP703 kit is available for mounting the CC320 on a DIN rail The top drawing shows the optional DIN rail fitted Dimensions are in millimetres 25 2 25 2 104 0 20 7 CEQ A YAA 3 3 3lrower 3 33 2 POWER 12 24V 100mA MACHINE VISION TIMING CONTROLLER ooo oo m 90 39848 4 3 8 3 6 www gardasoft com The CC320 enclosure is a fire enclosure as long as the following conditions are met The Ethernet connector must not be facing downwards The mounting holes on the underside must be covered have a screw fitted GARDASOFT 5 Connections 5 1 General All connections except Ethernet are available on screw terminals 5 2 Power Supply The power supply must be 12VDC to 24VDC regulated The maximum current required is 100mA The maximum heat dissipation is 2 4W 5 3 Digital Inputs The state of
18. h output channel 1 to 8 t the trigger tag number p 1 pass 0 fail For Resync mode this command returned the pass fail state of image processing for the given trigger tag For example SN3 76 1 Output 3 trigger tag 76 is a pass Set the output mode RSc m i g f c which output channel 1 to 8 m mode i which trigger input 0 for free running timer 1 to 8 for IP1 to IP8 9 to 16 for to OP8 g which gate input 0 for none 1 to 8 for IP1 to IP8 9 to 16 for to OP8 f flags GARDASOFT Sets the configuration for an output channel See section 6 for a description of these parameters For example RS4 3 5 0 2 will set output channel 4 to be pulse mode Ptt triggered by input 5 no gate input and flags 2 invert the output The flags parameter must be entered as a decimal number Set the output pulse timing RTc p d c which output channel 1 to 8 p Pulse width time or encoder pulses d Pulse delay time or encoder pulses The pulse delay and pulse width timings are set These timings will either be a time period or a number of encoder pulses as previously set by the mode parameter of the RS command The mode should be set with the RS command before the pulse timing is set For example RT2 3ms 5K Output 2 3ms output pulse after 5000 encoder pulses Set retrigger time RRer c which output channel 1 to 8 r Retrigger time or encoder pulses The retrigger time is the minimum time from when an output is
19. h tag number 10 was sent to the host computer when the first trigger was received but for some reason a reply was not received so the product was rejected for fail safe operation After the second trigger a Tag 11 message was sent with the reply SN2 11 1 OP2 tag 11 pass so the reject pulse on OP2 was cancelled After the third trigger a Tag 12 messages was sent with the reply SN2 12 0 OP2 tag 12 fail so the reject pulse OP2 was not cancelled 6 3 7 Resync and FIFO Mode This uses the same situation as the previous example but products are 4 seconds apart so that when a product is detected there are already two others travelling towards the reject gate Image processing software processes the image which can take a variable length of time and then sends a pass fail message to the CC320 The pass fail is re synchronised to the original product presence and the reject gate is opened if necessary GARDASOFT z 2 E z o ES all sele en Ey 2 8 ge Six amp 1 200ms 100us 0 1 10 seconds 1 second 0 E F R P 120 MSG to PC MSG to MSG toPC MSG to PC Tag 11 Tag 12 Tag13 Tag14 MSG from MSG from PC MSG from MSG from MSG from PC o N Tag 10 Tag 11 Tag 12 NO REJECT REJECT NO REJECT
20. he encoder count backwards It has the same effect as if the encoder moved backwards by this distance It works for 1 wire and 2 wire encoders ENI adjusts the encoder count forwards This has the same effect as the encoder moving forwards so might have an effect on outputs which use the encoder for timing For example in PEE mode a pulse may become due to start or stop For example the commands EN returns VLO EN1 25 Move forward 25 count EN returns VL25 ENO 10 Move backwards 10 EN returns VL15 ENO 40 Move backwards 40 EN returns VL4294967271 because the count has wrapped to 2 25 Show the state of an input 1 which input channel 1 to 8 Replies VLO if the input is logic 0 and VL1 if the input is on Show the state of an output ROc c which output channel 1 to 8 Replies VLO if the output is logic 0 and VL1 if the output is on Simulate an Input Pulse MPi c which input channel 0 to 8 Generates a simulated pulse on an input The input can be a physical input or the free running timer IPO GARDASOFT Disable Keyboard KBd d 0 Enable keyboard d 1 Disable keyboard In some applications it may be necessary to disable the keyboard so that operation can only be controlled from the Ethernet port The setting of this command is restored after a power cycle 10 4 Command Summary Function Show the firmware version Clear all configuration Show configuration Make configuratio
21. me as buF mode except the output signal can be delayed by a given number of encoder pulses GARDASOFT Each output also has the following flags which specify other options For Ethernet commands multiple flags can be set by adding the flag values together Operation Operation when flag 0 when flag 1 Trigger off leading edge of Trigger off trailing edge of input input Output is normally low Output is inverted It is going high when pulsing normally high going low when pulsing If a gate input is specified If a gate input is specified the the input must be high to input must be low to enable enable triggers triggers No Ethernet message Send message on Ethernet when triggered Triggers are ignored until FIFO output mode Multiple output pulse is complete triggers are queued up Resync mode disabled Resync Mode enabled Default to pulse in resync Default to no pulse in resync mode mode 6 2 1 Burst Mode In burst mode an output will pulse several times in response to a trigger The periods are timed not encoder counts The following parameters are used Mode is 8 for burst mode Gate Input specifies the number of pulses 1 to 250 Pulse Width specifies the pulse width Pulse Delay specifies the separation between the start of one pulse and the start of the next Pulse Delay must be longer than Pulse Width 6 2 2 Ethernet Message Flag E When the CC320 is used to t
22. ming difference between the two cameras IP1 OP1 400ms 10008 OP2 L 200mS 1000 E 6 3 2 Gated Pulses A camera needs to be triggered at 25Hz continuously except when IP1 is high to indicate that the machine has stopped The camera is triggered on OPI Gate Input Pulse Delay Pulse Width Set free running trigger to 25Hz OPI will trigger continuously at 25Hz only when IP1 is low Note that Flags 4 to invert the sense of IP1 If Flags 0 then OPI will only trigger when is high GARDASOFT IP1 6 3 3 Belt Position Triggering On a conveyor with an encoder a sensor detects product presence There are two cameras which need to take an image at fixed distances along the belt The camera trigger pulses must be fixed width for exposure control The trailing edge of IP4 is used as the trigger triggers the first camera after 2000 encoder counts OP2 triggers the second camera after 4000 encoder counts Both camera triggers are negative pulses Output Mode Input Gate Input Pulse Delay Ise Width Retrigger Time 2000 0 encoder counts 4000 0 encoder counts Set input mode to 2 wire encoder Both outputs are set into pulse mode The pulse delay is a number of encoder pulses and the pulse width is a fixed time The flags specify the trailing edge of the trigger signal and that the output pulse is active low
23. mum delay of 20us between the input changing and the output changing Error codes may be displayed by the CC320 returned as a reply to an Ethernet message These are shown as Enn where nn gives the number of the error To cancel the error message press SEL EEPROM is the non volatile memory used to save the configuration and Ethernet settings If the GARDASOFT B Error Codes EEPROM errors occur repeatedly then the controller may need to be returned for repair The error codes are Error number Err 1 Err 2 Err 3 Err 4 Err 5 Err 6 12 16 Err 8 25 Err 9 17 Err 13 Err 49 Err 51 Err 52 Err 81 Reason Ethernet command A parameter value is invalid Ethernet command Command not recognised Ethernet command Numeric value is wrong format Ethernet command Wrong number of parameters Can t read EEPROM EEPROM corrupt The configuration has been cleared Can t read settings from EEPROM Can t save settings to EEPROM SN command the resync event cannot be found The channel tag values may be wrong or the delay period may have completed Ethernet hardware not working Can t read Ethernet settings from EEPROM so these may be incorrect Can t save Ethernet settings to EEPROM Too many FIFO events have been used and the CC320 has run out of storage GARDASOFT Gardasoft LED Lighting Controllers The products available at the time of writing include the following Othe
24. n non volatile Read any error messages Enable Ethernet messages Set webpage password to AB Set pass fail Set pulse timing Set retrigger time Set output mode Set internal trigger period Set encoder mode Read the encoder count Sets an output Read state of an input Read state of an output Simulate an input pulse Disable keyboard Command Syntax VR CL ST AW GR GTm EYal a2 SNe t p RTc p d RRc r RSc m i g f RB1 p REe EN RVc v RIi ROc MPi KBd GARDASOFT A Timing The following timings apply for CC320 V016 All these timing assume that a single output channel is being used Simultaneous events on multiple inputs can cause some variation Typically this can vary the timing by up to 100us for each input Pulse widths below 4ms are repeatable to within lus and are not subject to variation even with other simultaneous events Pulse widths above 4ms are repeatable to within 100us and are subject to variation PTT mode pulses in the following conditions have higher priority and better timing Delay 0 pulse width lt 4ms Delay pulse width lt 4ms and O flag not set For example with OP1 to OP4 all meeting the first condition OPI has delay 24us 4us OP2 has delay 29us 4us OP3 has delay 34us 4us OP4 has delay 40us 4us The reply time of a simple Ethernet command for example the GT command is around 1 8ms for UDP and 2 8ms for TCP In buffer mode there is a mini
25. ng Timer Set the free running timer period from the keypad as follows Press and hold the SEL button until the display shows OP1 Use the UP and DOWN buttons to select FrE then press SEL Set the free running timer period See section 7 3 1 for a description of how to set the time period Set up free running timer 7 FrE SEE period as in End Section 7 3 1 Press and hold SEL for 1 second Then use UP DOWN to select FrE then press SEL 7 3 4 Setting Up An Output Channel The overall structure for setting up an output channel is given below Configuration mode must be entered once for each output channel to be set up The output mode names are given in Section 6 Depending on the selected mode the user will be prompted to enter a time or a number of encoder pulses as appropriate for the pulse delay and pulse width The flag names are given in Section 6 A minus sign indicates that the flag is not set So F I indicates that the I flag is not set and F I indicates that it is set 2 GARDASOFT Press and hold SEL for 1 second Then
26. o the original product presence and the reject gate is opened if necessary The reject gate is on OP2 and pulses high to reject the product Products take 10 seconds to travel from the sensor to the reject gate and take 1 second to move past the reject gate 2 4 5 em e o 2 Q o Ral 5D MWEE NE js za IE A 2 9t m B 3 E 1 200ms 100us 0 1 10 seconds 1 second 0 E R P 104 10 seconds after a trigger OP2 is set to pulse for 1 second to reject a product The camera trigger has the Send trigger message flag set So that the product is detected a message is send to the image processing software The image processing software must use the GT command to receive these messages GARDASOFT The image processing has to send a pass fail message before the reject gate is reached by the product As well as Resync mode the default to pulse flag is set This means that if the image processing software does not send a pass fail message OP2 is pulsed anyway MSG to PC MSG to PC MSG to PC Tag 10 Tag 11 Tag 12 MSG from PC MSG from PC MSG from PC No reply SN2 11 1 SN2 12 0 OP2 1 10 11 12 In this example three product triggers were received The camera was triggered using OP1 An Ethernet message wit
27. on until the display shows Use the UP and DOWN buttons to select ETH then press SEL The display will GARDASOFT either show FIP for a fixed IP address or dhC for DHCP Use the UP and DOWN buttons to select dhC and press SEL For a fixed IP address select FIP and press SEL The user will be prompted to enter four bytes of the IP address four bytes of the address submask and then four bytes of the gateway address dhcje End gt Sese Tlse 255 sel 1 2 255 Set 1P E 4 IP3 s 255 4 IP4 se 255 4 Sbi sel 255 5021255 563 255 564 se 255 7 j 255 gt2 99255 gts se 255 gt4 s 255 seo End When an IP address has been assigned using DHCP the address can be read from the keypad as follows Press and hold the SEL button until the display shows OP1 Use the UP and DOWN buttons to select ETH then press SEL Use the UP and DOWN buttons to select rIP and press SEL Keep pressing SEL and read the four values of the IP address The example below shows the IP address 192 168 1 71 dhc GARDASOFT UP DOWN UPIDOWN Show IP addjess SEL Else 192 Ie 1 2 ls 168 SEL ise 1 ise IPA se 71 se End
28. r products are also available See www gardasoft com for details of the current range PP500 Range 2 output channels up to 10A each 2 digital inputs Front panel configuration 500 Lighting controller PP520 Lighting controller with Ethernet control PPSOOF Lighting controller with fast pulsing PP520F Lighting controller with Ethernet control fast pulsing PP701 DIN Rail mounting clip for PP500 and PPSOOF ranges PP420 Range Same as the PP500 range but with 4 channels no front panel PP420 Lighting controller with Ethernet control PP420F Lighting controller with Ethernet control fast pulsing 820 Range PP860C Range High current high accuracy controller 8 output channels up 20A each Pulses repeatable to 0 1 microseconds RS232 or Ethernet configuration Machine Vision Timing Controller CC320 Controller 8 digital inputs 8 digital outputs 1 or 2 wire Encoder input Very flexible operation Ethernet control Front panel configuration PP703 DIN Rail mounting clip for CC320
29. rigger a camera the image processing can either be triggered by the acquisition of an image or by an Ethernet message sent from the CC320 When a trigger is received it is assigned a unique tag number an incrementing number from 0 to 255 Using the GT Ethernet command and the Ethernet Message flag the CC320 will send the tag number in a message to the host computer to say that a trigger has occurred The message has the form GARDASOFT Evt lt channel gt lt tag gt where channel is the channel number from 1 to 8 and tag is a number from 0 to 255 66 99 Multiple tag messages may be sent in one packet separated by 6 2 3 Resync Flag R Reject gate operation usually needs to be synchronised to the original product trigger However image processing can take a variable length of time to complete so rejects based on when the processing result is available will not be accurately timed The Resync flag allows pass fail results to be re synchronised to the original trigger There are two types of reject gate A pulse is required to reject a product set the P flag A pulse is required to stop a product being rejected don t set the P flag The Resync Flag should be used with the Ethernet Message flag The host computer will receive a tag number message process the image and then send a pass fail result as an SN command back to the CC320 The CC320 will match the message to the original trigger and time the pa
30. rom 1 count to 999 counts in steps of 1 Values are displayed in K from 0 01K counts to 9 99K counts in steps of 0 01K Values are displayed in K thousands from 0 1K counts to 99 9K counts in steps of 0 1K Values are displayed in K from 1K counts to 999K counts in steps of 1K Values are displayed in M millions from 0 01M counts to 9 99M counts in steps of 0 01M Values are displayed in M from 0 1M counts to 99 9M counts in steps of 0 1M Values are displayed in M from 1M counts to 999M counts in steps of 1M The flow diagram for entering encoder counts on the keypad is given below Enter encoder EE E 0 SEL 999 SEL countin UPIDOWN ee E 1 9 99 sev WN Enter 2 99 9 seb gt pena thousands UP DOWN E 3 sev 999 sev UP DOWN E 4 seo 9 99 tseo x UP DOWN Enter E5 s 99 9 e mw UP DOWN y E 6 sev 999 ise GARDASOFT 7 3 2 Setting Up Encoder Mode Set the encoder mode from the keypad as follows Press and hold the SEL button until the display shows Use the UP and DOWN buttons to select Enc then press SEL Select the encoder mode using UP and DOWN and press SEL Enc se non 5 hold SEL for 1 E 1 second n Then use 4 UP DOWN to mode select n 2 E then press press SEL 7 3 3 Setting Up The Free Runni
31. rsed movement correctly When the belt is in a reversed position the letter b will be displayed on the front panel triggers for PEt and PEE modes see below will be ignored output pulses in Pet and PEE modes will not be duplicated 6 1 2 Free Running Trigger An internal input IPO can be used as a periodic trigger The following parameter can be set Parameter Use Period The period inverse of the frequency of the simulated trigger disables the free running timer GARDASOFT For example a period of 20ms could be set which would result in a 50Hz trigger This can be used to trigger pulses on any of the outputs 6 2 Output Modes Each output operates independently By combining which outputs are triggered by which inputs and which mode each output is in it is possible to configure complex sequences of operation Several outputs can be triggered by one input to give synchronous operation or from separate inputs to give asynchronous operation of different functions For each output the following parameters can be set Parameter Use Mode Specifies how the output operates Input Specifies which input is used for triggering An output signal OPI to OP8 can also be used as a trigger This parameter can be 0 for the free running timer 1 to 8 for IP1 to IP8 9 to 16 for to OP8 Gate Input Specifies an input which enables disables the output This is also used to specify the number of pulses in bu
32. rst mode This parameter can be 0 for none 1 to 8 for IP1 to IP8 9 to 16 for OPI to OP8 number of pulses for burst mode Pulse Delay Specifies the delay from trigger to pulse output This can either be a time period or a number of encoder pulses depending on the mode Pulse Width Specifies the width of the pulse output This can either be a time period or a number of encoder pulses depending on the mode Retriggertime The retrigger time is the minimum time from when an output is triggered to the next time This can be used to debounce noisy inputs or when a product sensor fires more than once for one product The retrigger time uses the same dimension encoder pulses or time period as the Pulse Delay Flags Specifies other options When pulsing the Pulse Delay and Pulse Width parameters can either be fixed times or can be a number of encoder pulses The following operating modes are available for each output The Mode Number is used for Ethernet commands The Mode Name is used when configuring using the keypad GARDASOFT Operation The output is set off If the output is inverted flag O is set then the output will be logic 1 otherwise logic 0 The output is set high on If the output is inverted flag O is set then the output will be logic 0 otherwise logic 1 Pulsed output triggered by a digital input The delay and pulse width are set as fixed times Pulsed output triggered by a digital input
33. s numeric values for the user to change the right hand digit will be flashing to indicate that the Up and Down buttons can be used to change the value GARDASOFT To be able to set timing and encoder count values for pulse delay pulse width and retrigger time a scheme is used where the exponent power of ten of the value is set For timings the exponent values are as follows Exponent value EO E 1 E 4 Multiplier 0 1 0 01 0 001 0 0001 Number format 999 99 9 9 99 999 99 9 Range of values Values are displayed in seconds from 1s to 999s in steps of 1s Values are displayed in seconds from 0 15 to 99 9s in steps of 0 1s Values are displayed in seconds from 0 01s to 9 99s in steps of 0 01s Values are displayed milliseconds from 1 999ms in steps of 1ms Values are displayed milliseconds from 0 1ms 99 9ms in steps of 0 1ms The flow diagram for entering timings on the keypad is given below E 0 999 se UP DOWN y Enter the E 1 gt timein 4 seconds UP DOWN 2 se 9 99 ise A UP DOWN E 3 se 999 x Enter the gt time in milliseconds E 4 se 99 9 GARDASOFT For encoder counts the exponent values are as follows Exponent Multiplier Number format 1 999 10 9 99 100 99 9 1000 999 10000 9 99 100000 99 9 1000000 999 Range of values Values are f
34. ss fail output pulse accurately If an SN command is not received in time then the product will be rejected and an error code output 6 2 4 FIFO Flag F The FIFO flag is used for systems where there can be more than one product between the trigger point and reject gate This is usually used with the Resync flag so that each product has its own pass fail result If the FIFO flag is not set then an output cannot be re triggered until the previous pulse has completed Others triggers in this time will be ignored If the FIFO flag is set then multiple triggers are stored in the CC320 and a pulse is generated for each trigger at the correct time 6 2 5 Pulse Flag P The Pulse flag is used to select whether a pulse is needed to reject or to accept a product when the Resync flag is set When not set a pulse is required to reject product If a pass fail message is not received in Resync mode the CC320 will default to rejecting the product 6 3 Examples 6 3 1 Sequenced Pulses A sensor detects product presence There are two cameras which need to take an image after different delays The leading edge of IP1 is used as the trigger OPI triggers the first camera after 100ms OP2 triggers the second camera after 200ms Both camera triggers are positive pulses GARDASOFT gt CAES 3 5 4 ER 8 S E 100ms 100us 0 0 200ms 100us 0 0 Both outputs are set into pulse mode Two different delays give the ti
35. ut Maximum source current 50mA Note that the ve signals are low power supply outputs These are just to be used for low current pull ups 5 4 1 Ethernet Connector The RJ45 Ethernet connector requires a straight through cable to connect into a network switch hub or router It runs at 10Mbits per second GARDASOFT 6 Operation The CC320 Trigger Timing Controller has eight digital inputs and eight digital outputs All outputs operate independently and are configured separately Configuration is very flexible to provide solutions for a wide variety of timing problems The configuration can be saved in non volatile memory so that the CC320 will resume operation after a power cycle The state of each input and output is shown on an LED next to the connector Pulses are stretched a 10us pulse will be shown as a 100ms pulse on the LED so that it is visible to the user 6 1 Input Modes All inputs are general purpose trigger inputs except for IP1 and IP2 which can be used for encoder or as general inputs 6 1 1 Encoder Operation The CC320 supports two types of encoder Mode Connections Operation Max frequency EN 1 one is QEA Simple encoder provides position 700KHz wire encoder information All movement is assumed to be forward EN 2 two is QEA Quadrature encoder provides wire encoder position and direction information IP2 is QEB For 2 wire encoders the CC320 will handle reve

Download Pdf Manuals

image

Related Search

Related Contents

Microcomputador Tipo2 Windows    Bucear es un momento de relax, de reunión con los amigos, tener  Mode d`emploi 555 614    Jストーズ結合金具仕様取扱説明書  Power Killer PK-100 - CONRAD Produktinfo.  Bluetooth USB stick 4.0+EDR Bluetooth USB-Stick 4.0+  Agenda reports pack PDF 2 MB - Meetings, agendas, and minutes  Altronix ALTV244175 power extension  

Copyright © All rights reserved.
Failed to retrieve file