background image

(2)   Communication procedure and format 

Initiative of the sequence is on the host computer side.    The sequence always starts with 

the host computer side and the counter responds to it.    The host computer side has the 

initial transmission right, and the counter always give a response back to the host 

computer when a command is transmitted from the host computer to the counter.  

However, the counter does not respond when counter unit No. specified is different or 

when parity error or check sum error occurs. 

 

 Command 

Block 

Unit No. 

Command code

Command data 

Check sum 

CR 

 

 Response 

Block 

Unit No. 

Command code

Response data 

Status 

Check sum

CR

 

 

When data out of the setting range is coming in at setting by communication, setting is not   

 

conducted, instead response block (EE command) containing error code is sent back. 

 

The values set in setting mode by communication are stored in E

2

ROM.  Since E

2

ROM  

 

has the life of 1,000,000 times, avoid unintentional continuous storing of the set values. 

 

The values set in counter mode are not stored in E

2

ROM. 

 

(3)   Check sum procedure 

Operation range 

 

: from # to the last letter of command data   

Operation procedure  : Add all ASCII code in operation range and take a lower 1 byte.   

Add 30H to the 1 byte. 

Example:            # 

    0 

      0 

          V                R 

23H 30H 30H 56H 52H 

 

23H + 30H + 30H + 56H + 52H = 12BH 

 

Take 2B and add 30H to each part of the 1 byte. Check sums are 32H and 3BH. 

 

Therefore, command block will be: 

 

        # 

        0 

          0            V              R             2               ;           [CR] 

23H 30H 30H 56H 52H 32H 3BH 0DH 

 

 

 

Note: ASCII code and check sum data 

 

            Check sum data are not the letter data of the ASCII code, but correspondence will   

 

      be as the table below. 

 

Letter data 

0

・・・

A B C D E F 

ASCII 

30H

・・・

39H  41H 42H 43H 44H 45H 46H 

Check sum 

30H

・・・

39H  3AH 3BH 3CH 3DH 3EH 3FH 

 

 

28

 

Summary of Contents for CEU5

Page 1: ...060 C OPERATION MANUAL PRODUCT NAME Multi counter MODEL CEU5 z READ THIS OPERATION MANUAL CAREFULLY BEFORE USE IT z NEVER INSTALL THE PRODUCT UNTIL FINISH READING THIS z KEEP THIS MANUAL ALL THE TIME...

Page 2: ...1 1 Mode types and functions 14 7 1 2 Mode switching procedure 14 7 1 3 Setting of function mode 15 7 1 4 Data setting range 16 7 2 Setting 17 7 3 Counter operation 21 7 3 1 Handling data range 21 7...

Page 3: ...cations and possibilities of failures by checking the latest product information 2 Only trained personnel should operate pneumatically operated machinery and equipment Assembly handling or repair of p...

Page 4: ...with devices generating strong electromagnetic noise 4 Separation of signal wires from power wire Avoid common or parallel wiring of signal and power wires to prevent malfunction due to noise 5 Check...

Page 5: ...are expected k Place where vibration or impact is directly given to the products l Condition that the products are deformed by force or weight applied Operation Warning 1 Terminal block protective co...

Page 6: ...allows this counter to send counts to PC PLC and set the counter by communications with PLC PC For the counter with BCD output counts can be sent to PC PLC by BCD coding 2 1 How to Order Eight variat...

Page 7: ...ver No 21 through No 31 can be used only for binary output Normal output Binary output Features Allocate one output terminal to one preset number Divide preset numbers of 1 through 20 into four blocks...

Page 8: ...utput and UP DOWN individual pulse output 3 Pre scale function Function for the user to optionally set the number indicated for one count 4 Setting of tolerances for preset values Upper and lower limi...

Page 9: ...when the hold signal is inputted can be taken in The display is held however counting is continued inside At this time preset output is sent out according to the count inside with or without hold sign...

Page 10: ...t 60ms or less in binary output Communication RS 232C Proof voltage Between case and AC line 1500 VAC 1 minute Between case and signal earth 500 VAC 1 minute Insulation resistance Between case and AC...

Page 11: ...e 100 kHz and the waveforms of UP and DOWN pulses are as below C B A 12V 10 12V 10 Channel A UP pulse Channel B DOWN pulse requires 5 sec or more requires 5 sec or more requires 5 sec or more Not appl...

Page 12: ...No Preset No Multiplication Upper limit Function items PRESCL OFFSET STOP OUTPUT INPUT BACKUP RS232C UNIT Mode indication Counts Preset values Count value per pulse Offset setting Cylinder stop outpu...

Page 13: ...tput block terminals for preset output and cylinder stop output Serial transmission block terminals for RS 232C communication A phase pulse input DOWN pulse Caution The COM terminal of each block is i...

Page 14: ...ut The following shows the wiring for preset output OUT 1 through 5 and cylinder stop output S STOP with two output types NPN and PNP Model Wiring CEU5 CEU5B CEU5 D CEU5B D NPN transistor open collect...

Page 15: ...s in wiring 4 When cables may cause radiation noise mount a ferrite core on a signal cable 5 Use another stable power source for CEU5 power supply separate from motor and solenoid valve for AC type 6...

Page 16: ...cylinder stop output output type input type backup RS 232C and unit No 7 1 2 Mode switching procedure Mode can be switched by MODE key all the time The initial mode when turning ON the power is count...

Page 17: ...nal when pulse signals from Monosashi kun encoder do not change for a certain period of time This output signal provides better timing for reading preset output and outputs sent to PLC PC Setting Inpu...

Page 18: ...3 Upper limit 999999 to 999999 000000 4 Lower limit 999999 to 999999 000000 Preset 5 Preset output form 1SHOT HOLD COMPARE 1SHOT 1 Pre scale Connecting model CEP1 CE1 MANUAL CEP1 Multiplication 1 2 4...

Page 19: ...etting z Move digits by LEFT RIGHT key Increase or decrease numerical values by UP DOWN key z Move on to the next item by SEL key SEL Upper limit setting z Set numerical values by direction keys z Whe...

Page 20: ...2 or 4 by UP DOWN key 4 indicates a four quadrant z Move onto the next item by SEL key Setting of pre scale value z Set the unit per count z Move digits by LEFT RIGHT key Increase or decrease numeric...

Page 21: ...NC Counts backup 7 6 z Select A B quadrature input 2PHASE or indi vidual pulse input UP DOWN by UP DOWN key When polarity is changed counter directions are reversed 2PHASE UP Down 2PHASE UP Down z Sto...

Page 22: ...t setting DOWN Change the setting Decrease numerical values at setting z Direction keys in operation procedure indicate four keys UP DOWN LEFT and RIGHT 9 z Move digits by LEFT RIGHT key Increase or d...

Page 23: ...munication or BCD output The display on the counter is held during a hold signal is coming in With RS 232C communication or BCD output the data indicated is sent out Even if reading process of the PLC...

Page 24: ...output is ON Preset values can be stored up to 31 points However No 21 to 31 are only active in binary output and their preset output form is fixed at COMPARE mode 7 3 5 Output 1 Output form can be s...

Page 25: ...ard Count direction Preset value Output is ON for 100ms when a count crossed the preset value allowance When moved toward When moved toward Count direction Preset value Allowance HOLD HOLD is indicate...

Page 26: ...Reset if a measurement is taken with this position as a basis The above chart is an example when the settings of No 1 through 5 are as in the table below With normal output and bank 1 selection No 1 N...

Page 27: ...t processing time takes 300 ms and it will be longer for longer reset signal input time Reset input time 10 ms to 100 ms Longer reset input time Reset processing time ms 10 100ms Reset signal ON Reset...

Page 28: ...tput setting Stored in E2 ROM when settings are z Output type setting changed z Input type setting z Backup setting z RS 232C setting z Unit No setting z Digital filter setting z Current counts Only w...

Page 29: ...ata PR Reading pre scale setting PW Writing pre scale setting FR Reading indication offset setting FW Writing indication offset setting SR Reading cylinder stop output setting SW Writing cylinder stop...

Page 30: ...stead response block EE command containing error code is sent back The values set in setting mode by communication are stored in E2 ROM Since E2 ROM has the life of 1 000 000 times avoid unintentional...

Page 31: ...in HOLD inputting Indication overflow Indication underflow Counter overflow reset is required 5 Communication format details Reading counts VR Command Block 0 0 V R CR Unit No Command Check sum code...

Page 32: ...mit Allowance lower limit Output form O H C Writing preset data Command Block 0 0 D W CR Unit No Command Preset No Command Check sum code data Command data details 3 3 3 3 3 3 1 1 1 1 1 1 2 2 2 2 2 2...

Page 33: ...1 1 Multiplication Pre scale value Decimal point position Writing pre scale setting Command Block 0 0 P W CR Unit No Command Command Check sum code data Command data details 1 0 0 0 0 0 1 1 Multiplic...

Page 34: ...Command Response Status Check sum code data Response data details 0 1 2 3 4 5 Sign Indication offset Writing indication offset setting Command Block 0 0 F W CR Unit No Command Command Check sum code...

Page 35: ...Response data details 0 0 1 Stop output set time Unit 0 1 s Writing cylinder stop output Command Block 0 0 S W CR Unit No Command Command Check sum code data Command data details 0 0 1 Stop output set...

Page 36: ...o Command Response Status Check sum code data Response data details 0 0 Normal output 1 Binary output Writing output type setting Command Block 0 0 O W CR Unit No Command Command Check sum code data C...

Page 37: ...data Response data details 0 0 Phase difference input of A and B phases 1 Individual input of UP DOWN Writing input type setting Command Block 0 0 I W CR Unit No Command Command Check sum code data Co...

Page 38: ...Unit No Command Response Status Check sum code data Response data details 0 0 Backup OFF 1 Backup ON Writing count backup setting Command Block 0 0 B W CR Unit No Command Command Check sum code data...

Page 39: ...atus Check sum code HOLD output release Command Block 0 0 H R CR Unit No Command Check sum code Response Block 0 0 H R CR Unit No Command Status Check sum code Test transmission Command Block 0 0 T S...

Page 40: ...Error status is a text data of 1 byte Command error Response Block 0 0 E E CR Unit No Command Error Check sum code code When there is an error in the command block that has been sent the response bloc...

Page 41: ...D3 Digit of 10 2 Bit3 22 D15 Digit of 101 Bit3 5 D4 Digit of 10 Bit0 23 D16 Digit of 102 Bit0 6 D5 Digit of 10 Bit1 24 D17 Digit of 102 Bit1 7 D6 Digit of 10 Bit2 25 D18 Digit of 102 Bit2 8 D7 Digit...

Page 42: ...input part for photo coupler input Output specification open collector Max 30VDC 15 mA CEU5B BCD output part for NPN output type DC power 5 Output timing ms ms ms ms ms ms Data 1 Data 2 DATA VALID Da...

Page 43: ...e for the encoder specifications 9 Is the pre scale setting proper Set pre scale according to the encoder type and measured object 14 18 Does the frequency of encoder output signals exceed the countin...

Page 44: ...nals for other inputs 12 Control signal input does not become active RESET HOLD BANK Is the counter in count mode Press MODE key to switch the mode to count mode 14 Is the wiring of RS 232C input outp...

Page 45: ...sumed consult the shop or SMC Corporation Check sum trouble with E2 ROM storing the set values z Press any key to delete the memory and return to normal state z Since the set values in the items in wh...

Reviews: