Home
Serial Interface Board: Z
Contents
1. PA Parity Stop bit bit Ex 2 bits Data length 8 bits 7 bits Data to be subject to ASCII code only At communication with an external device the data length of which is fixed to 7 bits DO D1 D2 D3 D4 Parity Parity _ Stop bt bit J lt Data length 7 bits vy i A Ex 2 bits V At data sending D6 D5 CC Neglect D6 D5 D4 D3 Becomes 0 D4 D3 CPU board data 1 byte At data receiving D7 Stop bit 00 Initial value 2 bits Select to match the external device s 01 specifications 1 bit 00 Initial value Even Set and check that length of total amount of bits of data Do to D Do to De at 7 bits data length and ON bit of parity bit becomes even Odd Set and check that length of total amount of bits of data Do to D Do to De at 7 bits data length and ON bit of parity bit becomes odd Absent Don t set and check above parity bit 6 6 Parameter Setting value name Hexadecimal Details Absent No check concerning communication e RS relay is normally ON RS CS manual Communication mode Valid at RS 232C Control sending data by CS signal from external device 1 When CS signal is 0 ready for data sending 2 When CS signal is 1 stop data sendin
2. Match setting of control signal at external device side to this board s settings 6 7 Address T 0 to 7 Parameter name Control signal Setting value Hexadecimal Details XON XOFF manual Transfer mode Valid at full duplex Control sending data by XON XOFF codes from an external device 1 Possible data sending by receiving XON 1 142 2 Data stops sending by receiving XOFF 1 3ney _ External device External device Sending data 1 2 3 4 _ _5 6 A A X ON X OFF Receiving data Control receiving data by RS relay 1 This board automatically sends XOFF 13nex by turning RS relay from ON to OFF and requests to stop sending data to an external device 2 This board automatically sends XON 114zx by turning RS relay from OFF to ON and requests to send data to an external device 3 Receiving data time over error by turning OFF RS relay does not occurs CPU board RS relay Lud _ External Sending data evice Receiving data 1 2 3 4 External device Match setting of control signal at external device side to this board s settings XON XOFF automatic Transfer mode Valid at full duplex Control sending data by XON XOFF codes from external device Contents is as same as XON XOFF manual operation Control receiving data by number of vacant dat
3. Parameter name T 0 to 7 1 2 3 4 5 6 000000000200 000400 000600 001000 001200 001400 001600 Parameter transfer 000001 000201 000401000601 001001 001201 001401 001601 BCC calculation 000002 000202 000402 000602 001002 001202 001402 001602 Communication mode 000003000203 000403000603 001003 001203 001403 001603 Transfer mode 000004000204 000404 000604001004 001204 001404 001604 Transfer rate 000005000205 000405 000605001005 001205001405 001605 Data length 000006 000206 000406000606 001006 001206 001406 001606 Stop bit 000007 000207 000407 000607 001007 001207 001407 001607 Parity 000010 000210 000410 000610 001010 001210 001410 001610 Control signal 00001 1 00021 1 00041 1 00061 1 001011 001211 001411 001611 Transfer code conversion 000012 000212 000412 000612 001012 001212 01412 001612 Sending time over interval 000013 000213 000413 000613 001013 001213 001413 001613 Receiving time over interval 00001 4 000214 000414 000614 001014 001214 001414 001614 000015 000215 000415 000615 001015 001215 001415 001615 000016 000216 000416 000616 001016 001216 001416 001616 00001 7000217 000417 000617 001017 001217 001417 001617 000020000220 000420 000620 001020 001220 001420 001620 000021 000221000421 000621 001021 001221 001421 001621 000022 000222 000422 000622 001022 001222 001422 001622 000023000223 000423 000623 001023 001223 001423 001623 000024000224 000424 000624001024 001224 001424 001624 000025000
4. Completion of BCC calculation Execution of BCC calculation At changing parameter set to O1nex When the CPU board s changes from program mode to date transfer mode or it turns from OFF to ON it calculates BCC codes of parameter setting contents and stores in parameter address 177 When the calculation is completed set to OOnex Communi cation mode 00 Initial value RS 232C Transfer mode is fixed to full duplex 01 RS 422A 4 wire system Either full duplex or half duplex is selectable as transfer mode 02 RS 422A 2 wire system Transfer mode is fixed to half duplex Transfer mode 00 Initial value Full duplex Both sending and receiving data at the same time is possible In case of RS 422A 2 wire system it is fixed to half duplex so that this setting is invalid 01 Half duplex Execute sending and receiving alternately In case of RS 232C it is fixed to full duplex so that this setting is invalid Transfer speed 00 Initial value 19200 bits s 01 9600 bits s 02 4800 bits s Select to match the external 03 2400 bits s device s specifications 1200 bits s 600 bits s 6 5 Address Parameter T 0 to 7 name Data length Setting value Hexadecimal 00 Initial value Details 8 bits Data to be subject to JIS code binary data special character D3 D4 Parity
5. 00001 1 XOR value T goo Pesni 1 0000112 1100002 0001002 1100012 0001112 1100007 0010002 001 01 1 3 M biete a ae Seis dude a BCC code oooooooo The number of transfer bytes and receiving bytes are values after converting transfer code at data receiving Therefore when this board receives after conversion from ASCII to BIN page 6 10 number of data bytes at an external device is 1024 bytes at max Number of transfer bytes number of receiving bytes Number of data bytes at the external device Receiving non conversion Receiving ASCII gt BIN conversion 6 15 5 Sending data Relations between sending header terminator number of sending bytes P6 14 and 1 data frame of sending data are as follows Data sending terminator Control relay setting value Absent Ouex Including setting EXP1 terminator or EXP2 terminator of parameter to absent at Tex 2uex Settings _ Number of sending byte Control relay setting value Variable data length 0000ex Sending data Unable sending Number of sending bytes uncertain error 1 to 512 bytes 0001 Hex tO 0200nex Data from CPU board No of sending byte Da ES Top data 1 data frame Add sending header set by control relay automatically Present 1 Hex tO Tuex Variable data length 0000 rex Data from CPU board No of sending byte Sending Bendin 9 t
6. Approx 150 g Number of I O points Internal current consumption Weight 3 Communication specifications Specifications RS 232C 1 Use either RS 232C or RS 422A No protocol RS 422A Number of serial I F ports Specifications Number of connectable modules Max 15 sets EIA RS 422A 2 wire system 4 wire system 600 1200 2400 4800 9600 19200 bits sec Start stop system Full duplex half duplex 1 1 1 N Absent RS CS manual RS CS automatic XON XOFF manual XON XOFF automatic 7 8 bits Absent odd even 1 set Data transfer standard EIA RS 232C Transfer rate Synchronous mode Transfer mode Circuit configuration Control signal Data length Parity Stop bit Control character 1 2 bits Absent EXP1 EXP2 CR LF CR LF STX ETX ETX BCC Transfer code Non conversion BIN lt gt ASCII conversion Number of sending receiving bytes Individual setting for sending receiving 1 to 512 bytes Communication line Cable total length Max 15 m Shielded twisted pair cable Cable total length Max 1 km Shielded twisted pair cable 9 1 Appendix Appendix 1 Parameter address and parameter name The below table shows the relation between address of parameter area and name of parameter set by module No switches Parameter area Parameter Register address of file 1 address Setting value of module No switch
7. Causes and treatments for errors o o D amp E o N Hi o D E S S G a Error code Hexa decimal Normal operation Treatment means page to refer Priority Lighting LED Parameter transfer error Set other than 22hex in param eter transfer Check setting value of param eter transfer 6 5 BCC calculation error Setting value of BCC calculation is incorrect Check setting value of BCC value 6 5 Communication mode error Setting value of communication mode is outside the range Check setting value of commu nication mode 6 5 Transfer mode error Setting value of transfer mode is outside the range Check setting value of transfer mode 6 5 Transfer rate error Setting value of transfer rate is outside the range Check setting value of transfer rate 6 5 Data length error Setting value of data length is outside the range Check setting value of data length 6 6 Stop bit error Setting value of stop bit is outside the range Check setting value of stop bit 6 6 Parity error Setting value of parity is outside the range Check setting value of parity 6 6 Control signal error Setting value of control signal is outside the range Check setting value of control signal 6 7 to 6 8 Transfer code conversion error Setting value of transfer code conversion is outside the range Check
8. nana exer x uada run du en Ur eo a EXER ER Ra dE XN HRK RR 5 8 Chapter 6 HOW 10 USB iesiesais nia dikluinc c ME AEG ECRIRE A RUM KIM IU M MEDIANO E KV KE RE EMI 6 1 1 Allocation of IO relays sssssssssssssseseeeeenene enne enne enne nn nnn KONATAN REA ERNER nnn 6 2 2 Settings of parameter area control relay area ssssssssseeeneeeeneennnn 6 3 3 Parameter settingus iias aaea a dcin SER DR ORE ER NR MA aa aa DEN SOR eR EA FUA R ANNA 6 4 4 Control relay NEUEN ts 6 13 5 Sending data emt 6 16 6 Re ieving Reim 6 17 Chapter 7 Program EXample uico bisipls cnnstii pa sad d EE Epexcir ed read a ucc ER EHE EN E 7 1 Chapter 8 Error and Treatment Lise nin sa ias osa GEPa Chna Sn ER HRS CELER MIASUERUNFMR RR E a EER 8 1 Chapter 9 Specifications c oixessairenadada v da KRUGER GERNE RUb AES b MM Una ANE ARMEN EE 9 1 joo pn dem App 1 Appendix 1 Parameter address and parameter name ssssssseeeen enne App 1 Appendix 2 Address and name of control relay sssssssseeene en App 2 Safety Precautions Read this user s manual and attached documents carefully before installation operation maintenance and checking in order to use this board correctly Understand all of this board s knowledge safety information and cautions before
9. starting to use In this user s manual safety precautions are ranked into Danger and Caution as follows Wrong handling may possibly lead to death or heavy injury Wrong handling may possibly lead to medium or light injury or loss on properties Even in the case of ACaution a serious result may be experienced depending on the circumstances Anyway important points are mentioned Be sure to observe them strictly The picture signs of prohibit and compel are explained below Q It means a don t For example prohibition of disassembly is indicated as o It means a must For example obligation of grounding is indicated as eb 1 Installation A Caution Use in the environments specified in the catalog and user s manual Electric shock fire or malfunction may be caused when used in the environments of high temperature high humidity dusty or corrosive atmosphere vibration or impact Install according to the instruction manual and user s manual Wrong installation may cause a drop trouble or malfunction Never admit wire chips or foreign matters Or fire trouble or malfunction may be caused 2 Wiring 9 compe Be sure to ground Unless grounded electric shock or malfunction may be caused A Caution Wiring should be done by a qualified electrician Wrong wiring may lead to fire trouble or electric shock 3 Use lt gt Danger Never touch the terminals
10. the board Y 9 Set parameter e Parameter setting 6 4 to 12 Y 10 Create program of J board Control relay 6 13 to 15 Y Program example 7 1 2 11 Enter the J board in operation condition using a support tool 12 Start communication between the board and the external device 6 1 1 Allocation of I O relays This board contains 8 bytes as shown below I O relays are allocated on this board as dummies They do not function However please note that their assignment may affect I O relay addresses on another I O board Allocation example when the rack No is O Allocation I O relay address Actual address Dummy vacant Dummy vacant Dummy vacant Dummy vacant Turn SW2 1 and SW2 2 ON lll An example of the assignment of I O relays when an I O board is installed on a motherboard E ON OFF SW1 Rack No SW2 i I O relay address i i i 21 gt 64 p 3013 to 1037 mi iil cee 020 to 1027 3010 to 3017 This board Z 354J This board Z 354J 1000 to 1007 CPU board Z 312J When SW1 rack no is set the to same number for multiple J boards they may have the same I O allocations which can cause a malfunction When SW1 rack no is turned ON on multiple stations an I O verification error Error code 60 will occur 6 2 2 Setting
11. the timer and continues sending Allowance of setting time is O to 100 ms Example At OOuex setting O ms to 100 ms At O1uex setting 100 ms to 200 ms 00 Initial value 0 ms 01 100 ms 02 200 ms 03 300 ms 04 400 ms 05 500 ms 06 600 ms 07 700 ms 08 800 ms 09 900 ms Receiving time over 0A 1000 ms interval 0B 1100 ms oC 1200 ms oD 1300 ms OE 1400 ms OF 1500 ms 10 1600 ms 11 1700 ms 12 1800 ms 13 1900 ms 14 2000 ms Other than above Setting prohibited While the board is receiving data if the receiving data stops sending at a middle of 1 data frame see page 6 17 the timer starts counting If the board does not receive the next data within the receive time out interval the receive time out error occurs If the board receives the next data within the specified time interval the board resets the timer and continues receiving data Allowance of the specified time is the same as the sending time out time When the RS CS manual or XON XOFF manual is selected as control signal and if the RS relay is OFF the receiving time over error does not occur Address T 0 to 7 Parameter name EXP1 header EXP1 terminator Setting value Hexadecimal Initial value 00 Details When EXP1 header EXP1 terminator ar
12. while electric power is charged Otherwise you may have an electric shock Assemble an emergency stop circuit and interlock circuit outside of the J board and integrate the J board s halt output Otherwise a machine breakdown or accident may be caused by the trouble of the programmable controller AA Caution Manipulation for program change forced output RUN or STOP during operation should be done with particular care by confirming safety Mis operation may lead to a machine trouble or accident Follow the power input order specified Otherwise the J board malfunctions and damages machines or cause an accident 4 Maintenance Prohibit Don t disassemble or modify Or fire trouble or malfunction may be caused AA Caution Make sure to turn OFF the power before removing installing the board installing the connectors or changing the switch settings Chapter 1 Outline The Z 354J serial interface board hereafter referred to as the board is a special I O board used to com municate with external devices It has RS 232C 422A serial interfaces for communication with a personal computer and a bar code reader Compatible 2 motherboards Ze od Features and functions 1 Either RS 232C or RS 422A is selectable as communication mode Z 354J Z 354J o pee C acs O E External device 5 External devi
13. 225 000425 000625001025 001225 001425 001625 000026000226 000426 000626 001026 001226 001426 001626 000027000227 000427 000627 001027 001227 001427 001627 000030 000230 000430000630 001030 001230 001430 001630 to to to to to to to to Not used 000176 000376 000576 000776 001176 001376 001576 001776 000177 000377 000577000777 001177001377 001577 001777 BCC code EXP1 header EXP1 terminator EXP2 header EXP2 terminator App 1 Appendix 2 Address and name of control relay The below table shows the relation between address of control relay area and name of control relay set by module No switches Control relay address Name of control relay Setting value of module No switches Bit address Signal 1 2 3 4 5 6 Ds D Ds direction 30360 Raza CPU board gt Z 354J 30361 Rack Reavy CPU board lt Z 354J 30362 Error code 10363 Sending header terminator Receiving header 30364 Number of sending bytes Lower board Z 354J 30365 Number of receiving bytes Upper 30366 Number of transfer bytes Lower CPU board Z 354J 30367 Number of transfer bytes Upper 30370 Number of receiving bytes Lower CPU board gt Z 354J 30371 Number of receiving bytes Upper 30372 to Not used 30377 App 2 SHARP
14. 257 bytes up to 512 bytes See the table below for each of the setting values F 048 ONLR 07354 l 07355 Non carry Rrpy Retry l 4 Error 07356 1 Hl Start Carry Rrpy Unbv RREQ RREQ Carry flag 07356 turns ON when only the data transfer is completed using F 85 instruction 1 Set the relay number Start retry Any number Rack Rgov Rrea Urny The number set with the module no switch on this board see App 2 2 Setting value of F 85 instruction Number of sending bytes 0 to 256 257 to 512 Set 0010crto 3770crfor 0 to 255 ni transfer bytes and 000ocr for 256 of number of 0000cT receiving bytes Set the top address which transfer the receiving data Map ce eles 30000 to 11577 b0000 to b1777 09000 to 99777 E0000 to E1777 SW switch setting Specify the module No switch value of this board 0 to 7 n2 transfer data 2 n 1 number of transfer Set 0010cr to 3770cT for 257 to 511 and bytes 0000cr for 512 of number of transfer bytes D top address hes io byte address counting from n 2 transfer area Chapter 8 Error and Treatment When this board is abnormal EA EB or FT on the LED lights see page 4 1 and stores error code in control relay area See page 6 13 and App 2 The stored address is fixed by module No switch setting of the module LWodue mo switch spectied 0 31 2 3 4 5 8 7 Error code storage address
15. After calculating number of receiving data bytes from an external device except receiving header terminator this board outputs the result to this address As for relationship with other settings see page 6 17 No of receiving bytes 0000 ex 0 byte to to 0200ugx 512 bytes Other than above Setting prohibited 6 14 Set number of bytes of receiving data from an external device e This setting is valid only when both receiving header terminator are ab sent As for relationship with other settings see page 6 17 1 4 places Become parameter set code see page 6 12 2 2 places How to make a BCC code BCC check is made based on the calculation of the range from STX onward up to ETX The calculations are all performed in bit patterns of ASCII 7 bit codes 1 Operate XOR of the first character and the second character of the communication data Truth table of eXclusive OR 2 Operate XOR of the result of that operation and the third character 3 Determine the result of operation sequentially and lastly operate XOR of ETX to take it as BCC code Example ist 2nd 8th word word OU TIU II RE E EIE word STX 31 32 33 34 35 36 37 38 ETX BCC l Calculated area of BCC check ASCII Binary value 81 32 33 34 35 36 37 38 ETX 03 110001 110010 110011 110100 110101 110110 110111 111000
16. MANUFACTURING SYSTEMS CORPORATION Information about Sharp image sensor camera and programmable controller is available at our internet homepage http sharp world com sms 1 0v 10 2005 0 11 M S
17. Version 1 0 SHARP Produced in Oct 2005 Sharp Programmable Controller Board PC J board Z 300 series Model name Serial Interface board Z 354J Thank you for purchasing our J board Z 300 series programmable controller This manual describes specifications and discusses the use of the serial interface board See the J board Z 300 series Z 311J 312J Z 321J User s Manual Hardware Version for installation methods and basic application of this board Should you have any questions or inquires please feel free to contact one of our dealers or our service department Copying the whole or part of this manual is prohibited The contents of this manual may be revised without notice Table of contents Safety Precautions Chapter 1 Outline aoo epa x GEEK iad i da ated ENa a RN NUS ER REA FU du KE QN ER 1 1 Chapter 2 Handling Precautions cocer notanda nte oa nana uta Coruna Rana ndn Enn a 2 1 Chapter 3 System Configuration eeeeeeeeeeeeeeeeeseeeeee nennen nennen 3 1 Chapter 4 Name and Function of Each Part ccccssseeseeeeeeeesseeeeeeeeeenseeseeeeeneees 4 1 Chapter 5 Installation Wiring Method eese 5 1 oma BiEsrziuennriorc e E 5 1 a Tele 5 2 1 Pin assignment of CN2 external communication connector sssssseeeeeeeene 5 2 2 Connecti ori example tacta pntant n nean aon
18. a bytes of receiving buffer 1 When number of vacant data bytes is less than 16 bytes this board automatically sends XOFF 13nex and requests to stop sending data to an external device 2 When number of vacant data bytes is more than 17 bytes this board automatically sends XON 1 1nex and requests to send data to an external device Number of vacant data bytes of 16 bytes 17 bytes receiving buffer External device iX OFF X ON Sending data External 4 device Receiving data 1 3 6 8 011 Parameter name Transfer Setting value Hexadecimal 00 Initial value Details Sending Non conversion Receiving Non conversion Send CPU board s data without conversion Send data from an external device without conversion JIS codes binary data are usable data length 8 bits Inside of sending receiving buffer P t ist CPU board data register at tile board Non conversion 1st byte Sending data 2nd byte Receiving data Sending lt External device Terminator 1st char 2nd char Header n th char Top data n Ihbyte Max value of n 2 points is 512 Values in means conditions at receiving code conversion 01 Sending BIN ASCII conversion Receiving Non conversion Send data after convert BIN da
19. annot communicate unless DCD carrier detection is ON In this case latch DCD terminal signal at the external device side or loop back ON voltage signal 15 mor less 2 RS 232C In case of control signal RS CS manual or RS CS automatic Z 354J Shield cable External device Pin No Signal name 15morless 3 RS 422A 4 wire system 1 by N connection is available Max 15 sets for N External Z 354J External device 1 External device 2 device N Shield cable Shield cable Shield cable 1 km or less This board needs not necessarily to be end station 5 3 4 RS 422A 2 wire system 1 by N connection is available Max 15 sets for N External Z 354J External device 1 External device 2 device N hiel hiel Shield cable eE Shield cable Shield cable UMEN 1 km or less This board is not necessary be an end station 5 Using Z 101HE RS 232C RS 422A converter 1 4 wire system Shield cable Shield cable posite RS 422A evice 4 wire system RS 232C 1 km or less 15 m or less 2 2 wire system automatic Shield cable Shield cable External 2d RS 422A 2 wire system device RS 232C i 1 km or less 15 m or less RS and CS of ext
20. ce RS 232C RS 422A o z1 ol o G D 15 mor less 1 km or less 2 When RS 422A is applied max 15 sets of external devices are connectable Z 354J External device max 15 sets A o u o Urna pana RS 422A RS 422A RS 422A oL 1 km or less ry 3 Applicable to various data formats for exchanging data with external device 4 Max 512 bytes of data sending receiving is possible 5 Outputs error information by error codes 1 1 Chapter 2 Handling Precautions 1 Precautions for installation Never install the board in the following locations Where proximate to any heat generating object Where temperature rapidly changes and gives dew condensation Where there is flammable gas Where it directly receives vibration or shocks Where exposed to dust iron powder or salty atmosphere In conditions where the printed circuit boards may be directly affected by these causes make sure to provide an appropriate external case to cover the J board Where it is proximate to high voltage equipment driving power tools large open close surge gener ating devices and their wirings 2 Precautions at use In order to prevent personal injury or damage to equipment construct an external emergency stop circuit and connect it to the halt output on the J board As J board is board structure and it s electronic parts are exp
21. d Specify these add resses in order to determine whether the data received are intended for this board or not Receiving data Receiving header Receivi ng terminator Top data End data Sending header terminator Receiving header Receiving terminator Onex Absent Absent 1 HEX EXP1 header EXP1 terminator 2HEX 3 EXP2 header EXP2 terminator SHEx Absent CR 4ugx Absent LF 5uex Absent CR LF Guex STX ETX T ugx 2 STX ETX BCC 1 byte Other than above Setting prohibited Specify these add resses in order to determine whether the data sent are intended for this board or not Sending data Data Sending header Sending terminator T Top data End data No of sending bytes 0000 ex Variable data length 0001 Hex 1 byte to to 0200ugx 512 bytes Other than above Setting prohibited external device e Set number of byte of sending data to When number of byte is set to variable data length the module is unable to send while sending terminator is ab sent and automatically calculates number of sending bytes while sending terminator is present see page 6 16 As for relationship with other settings No of transfer bytes 0000 ex 0 byte to to 0200ugx 512 bytes e Setting is not required
22. e set at sending header terminator or receiving header terminator of a control relay see page 6 14 any set code in this parameter is valid as control character When NUL code 004g is set thereafter set code becomes invalid so that header can use 1 to 4 characters and termina tor can use 1 to 2 characters When NUL code is set at each top address 014 020 it becomes header absent terminator absent conditions Setting example Address Setting value Character 014 3A 015 3F H Sending receiving data 016 00 H NUL Data Invalid gt NUL 017 00 n 020 40 n Terminator 1 char Header NUL 2 chars 021 00 n Invalid EXP2 header EXP2 terminator Initial value 00 When EXP2 header EXP2 terminator are set at sending header terminator or receiving header terminator of a control relay see page 6 14 any set code in this parameter is valid as control character Setting contents is as same as EXP1 header EXP1 termina tor Not used Initial value 00 BCC code Setting is not required Setting by support tool is invalid Store check code of parameter This board checks param eter setting values from CPU board using this code 6 12 4 Control relay Control relays are used for a program to send and receive data As for programming refer to the basic
23. elf The setting for this switch must not be i Slide switch 1 pole changed Keep the factory settings diagnosis switch ON enables the self diagnosis 4 1 LED display Indication color Display details Is ON while sending date J board gt external device Is ON while receiving date J board external device Is ON when the J board is requesting an external device to send data the J board is ready to receive Is ON when the J board can send data to an external device waiting for an external device that is ready to receive Goes ON when any of the parameters or control relay settings are out of range Goes ON when a communication error occurs such as parity error or time out On during self diagnosis goes OFF in normal use Goes ON when a hardware error occurs on the J board Setting of SW5 termination resistance switch When communication mode is RS 422 2 wire system 4 wire system set termination resistance At RS 232C this setting is not required Setting Condition of the board ON Insert termination resistance OFF Do not insert termination resistance 1 by 1 connection e Turn ON the switch on both of the module and external device Z 354J External device RS 422A Termination Termination resistance switch resistance switch ON ON When Z 101HE RS 232C RS 422A converter is usin
24. erminator header Data Top data 1 data frame jaa Calculate the number of sending bytes automatically Setting sending header terminator set in the CPU board data with control relay is required 1 to 512 bytes 0001 Hex tO 0200nex 6 16 Data from CPU board No of sending byte Sending header Sending Data terminator Top data 1 data frame Add sending header terminator set by control relay automatically 6 Receiving data Relationship between receiving header terminator number of receiving bytes page 6 14 receiving time out interval page 6 11 number of transfer bytes page 6 14 and 1 data frame of receiving data are as follows t t are intervals between each receiving data T as receiving time out interval Receiving header terminator Control relay setting value Receiving header absent Receiving termina tor absent Onex Including above condi tions at 1uegx 2uex param eter setting Number of receiving byte Control relay setting value 0 byte 000042 Receiving data 1 data frame No of transfer bytes When both t and t are longer than T an interval length between each start point of t and t becomes 1 data frame ti NET Bl re 1 to 512 bytes 0001 HEX to 0200uzx lt t2 pal L 1 data frame a No of transfer b
25. ernal device might be shorted in accordance with specification available opera tion when both RS and CS are ON of its external device Some external device cannot communicate unless DCD carrier detection is ON In this case latch DCD terminal signal at the external device side or loop back ON voltage signal When Z 101HE automatic mode is applied set transfer rate 2400 bits s or up Be sure to use the following shielded twisted pair cables RS 232C RS 422A 4 wire system RS 422A 2 wire system HITACHI CABLE LTD CO SPEV SBO0 5 S IREV SW2 0 5 Wire the communication cable as far apart as possible from power lines or high voltage lines so as not to run close or parallel to them 5 4 Chapter 6 How to Use Standard operation flow is shown below Refer to this for use Reference item Pages to refer 1 Turn OFF power supply to J board 2 Set termination switch SW1 M 6 2 3 Set parameter area and control relay area by module No switch Setting of parameter area control relay area 6 3 4 Set termination resistance switch 4 2 5 Check the switch settings SW2 1 ON SW2 2 ON SW3 0 SW6 OFF Y 6 Install the board together with a CPU board etc gt Installation method 5 1 Y 7 Connect external devices to the board Wiring method 5 2 to 4 8 Turn ON the power supply to
26. g 00 Initial value Sending data j 1 2 3 4 5 6 7 External device CS signal External device Control receiving data by RS relay 91 1 When RS relay is OFF RS signal becomes 1 and requests to stop data sending to an external device 2 When RS relay is ON RS signal becomes 0 and requests to send data to an external device 3 Receiving data time over error due to switch OFF RS relay does not occur RS relay QN Jw 0 010 Control 0 1 M External signal Fors device T lo External Receiving data 1 2 3 4 5 6 device RS CS automatic Communication mode Valid at RS 232C Control sending data by CS signal from external device Contents is the same as RS CS manual operation Control receiving data by number of vacant data bytes of receiving buffer 1 When number of vacant data bytes becomes less than 16 bytes RS signal turns to 1 and requests to stop sending data to an external device 2 When number of vacant data bytes becomes more than 17 02 bytes RS signal turns to O and requests to send data to an external device Number of vacant data bytes of 16 bytes i 7 bytes receiving buffer Y Y 0 External RS signal 1 x x device External Receiving data 1 2 3 4 5 8 device
27. g termination resistance of Z 101HE is al ways ON Z 354J Z 101HE External device RS 422A RS 232C Termination Termination Termination resistance switch resistance is resistance switch ON always ON ON or OFF is OK 1 by N connection Turn ON both of end stations turn OFF intermediate stations RS 422A RS 422A RS 422A Termination resistance switch OFF Termination resistance switch ON This board need not necessarily be end station 4 2 Chapter 5 Installation Wiring Method 5 1 Installation method Shown below are the PC board dimensions and assembled dimensions of the Z 354J PC board dimensions 100 Unit mm Standoff hole 4 4 180 Brackets are not included in the dimensions on the left 5 117 5 Assembly dimensions when 4 sets of the Z 354J are stacked Unit mm 25 0 21 6 21 6 21 6 21 6 CPU board 126 4 Serial interface board Z 354J L_ In case of fixing bracket A CPU board should be installed on the top For the details about assembling and installing the board see the J board Z 311J 312J User s Manual Hardware Version 5 1 5 2 Wiring method This board can be connected to either an RS 232C or RS 422A 2 wire system 4 wire system de vice through external communicati
28. ice For details about the operation methods see the manual for the peripheral device 1 Setting procedures D Connect the peripheral device to the CPU board of the J board 2 Put the peripheral device in the setting mode R t akc Read the set address Appendix 1 Parameter address steps and parameter name App 1 as many times as necessary 4 Read the set value 2 Setting e p o page 6 5 to 6 12 Peripheral device Address to set JW 2PG Parameters JW 10PG File 1 register JW 11PG JW 12PG Parameters JW 13PG ZW 101PG1 Z 100LP2F JW 40PG Specify the JW21 22 JW 50PG parameters for editing JW 92SP programs JW 52SP Special I O module File 1 register When the power is turned ON or the J board status changes from stop to operating the J board s motherboard transfers the parameters to the J board and specifies the communication conditions 6 4 2 Setting the parameter details The address shown below is parameter address In case of register address of fiel 1 refer to appen dix 1 Address T 0 to 7 Parameter name Parameter transfer Setting value Hexadecimal 22 Initial value 00 Details Execution of parameter transfer Transfer parameters from CPU board s memory to the board Other than 22 ex is treated as prameter transfer error BCC calculation 00 Initial value
29. on connector CN2 1 Pin assignment of CN2 external communication connector Internal circuit diagram of this board Communication connector D sub25P diu FG Ho eu SD 20 ye RD erate RS 232C4 RS 40 Q17 cs 50 O18 SC Dig SG 7Q O20 80 O21 90 O2 SD 10O spo no 7 RS 422 O24 RD 12 O25 RD 130 Wo lt SD reo RS 232C sp o2 lt RD OSS q gt o RS 422 m gt RD RS D op O A D 2 wire pis 4 wire system CS 2 Function Frame ground Signal direction Sending data Z 354J gt External device Receiving data Z 354J External device RS 232C Request to send Z 354J gt External device Ready to send Z 354J External device Not used Signal ground Not used 10 22 11 23 Sending signal Z 354J gt External device RS 422A 12 24 13 25 Receiving signal Z 354J lt External device 14 to 21 Not used 5 2 2 Connection example 1 RS 232C In case of control signal absent XON XOFF manual or XON XOFF automatic Z 354J Shield cable External device Pin No Signal name V RS and CS of external device might be shorted in accordance with specification available operation when both RS and CS are ON of its external device Some external device c
30. or a An interval from header to terminator becomes 1 data frame 2H EX 8 places When t exceeds T it becomes receiving time out error and rejects received data T HEX When number of transfer bytes exceeds 512 it becomes overflow error and rejects received data 6 17 Chapter 7 Program Example This chapter describes basic program of data sending and data receiving and its application examples Use this basic program for programming 1 Data sending When the start relay turns from OFF to ON while there is no sending data in the module sending buffer the module transfers J board s data to the module s sending buffer by F 86 instruction and starts data send to an external device The retry relay function is capable of re transferring data which was not executed data transfer by F 86 instruction As for functions of each control relay see page 6 13 F 047 ONLS F 044 x i me jua Start TREQ Urpy PRWR n D SW n2 _ F 086 Retry PRWR n D SW n 2 Add instruction in when number of sending bytes is more than 257 bytes up to 512 bytes See the table below for each of the setting values F 048 ONLR 07354 i 07355 Non carry Trea Retry EL Error 07356 gt 73 Carry TREQ TRDY i Troy Carry flag 07356 turns ON when only the data transfer is completed using F 86 instr
31. osed be careful when handling 1 Before you touch the board directly be sure to eliminate static electricity in your body 2 Do not touch directly with dirty hands such as stacked oil etc 3 Do not put the board alone directly on conductive objects such as metallic boards Once the J board is installed on a motherboard if it contacts a conductive object the battery on the motherboard may be short circuited and the back up memory may be damaged 4 Be careful not to apply excessive force to each switch connector terminal block of the J board Make sure to turn OFF the power before connecting the board installing connector changing a Switch setting 3 Precautions for wiring Do not run the communication lines parallel to or near to power lines or high voltage lines Do not arrange wiring so that sources of electrical noise driver lines high voltage lines or I O lines come close to the PC board on the J board 2 1 4 Installation Use bracket A or B sold separately to install the J board in any of the following 4 positions Recommending installation positions 7 E ur 1 When fixing bracket A 2 341 is used When fixing bracket B Z 342J is used If you do not use bracket A or B to install the J board make sure it is very secure Also install the J board with as much ventilation as possible If the J board is installed horizontally as shown in the figure belo
32. program on Chapter 7 Program Example 1 Control relay contents Addresses shown below are true when the module No switch setting is 0 For settings of other numbers refer to appendix 2 Address Name of control relay Troy Ready sending operation Contents Turns ON when data sending to an external device is available When Troy relay turns from OFF to ON this board clears error codes of control relay and recovers from error condition Rrea Request to transfer receiving data Turns ON when the CPU board requests to send receiving data to this board While Ra relay turns from OFF to ON when this board has received data it turns ON Rack relay It also clears error codes RS Request to send Control RS control signal of RS 232C from the CPU board this signal turns ON when requesting to send data to an external device RS signal voltage is 10 V Valid when parameter setting of control signal Page 6 7 and 6 8 is RS CS manual and XON XOFF manual Trea Request to transfer sending data Turns ON when there is no data in sending buffer of this board Rrpy Ready to transfer receiving data Turns ON when this board has receiving data and ready to transfer to the CPU board Rack Ready to transfer receiving data Turns ON when this board has receiving data while Rrea turns from OFF to ON This board transfers receiving da
33. r Parity error Setting value of number of receiving byte is outside the range An error occurs by parity check during receiving data Check number of receiving byte setting control relay 6 14 Check communication setting with external device Check external device communication cable Framing error Receiving data is abnormal Check communication setting with external device Check external device communication cable Overrun error Receiving data exceeds receiving buffer capacity Check number of sending data of external device Overflow error Number of receiving bytes exceeds 512 bytes which is a limit to transfer to CPU board Check number of sending data of external device Data conversion error Receive unable to convert code by ASCII BIN conversion of receiving data Check sending data of external device BCC check error When receiving header terminator is set to STX ETX BCC BCC code calculated by receiving data differs from received BCC codes Check sending data of external device Sending time over error Prohibition to receive of an external device continued longer than sending time out interval set in parameter Check external device communication cable Receiving time over error Hardware error Data collision error Data stopped condition while data receiving continued longer than receiving time out interval Se
34. s of parameter area control relay area Set parameter area to designate communication mode transfer rate etc and control relay area re quired for data sending receiving programs using a module No switch Be sure not to set same number with other special I O module Z 354J O OC O Module No switch setting value o Module no switch SW4 G1 8g QE aS Parameter area Parameter address TEGERE Register address of file 1 000000 to 000177 Control relay area byte address 30200 to 30217 000 to 177 000200 to 000377 30220 to 30237 000 to 177 000400 to 000577 30240 to 30257 000 to 177 000600 to 000777 30260 to 30277 001000 to 001177 30300 to 30817 000 to 177 001200 to 001377 30320 to 10337 000 to 177 E T T T T 001400 to 001577 10340 to 10357 1 T 2 3 4 000 to 177 5 6 7 000 to 177 001600 to 001777 30360 to 30377 NI 0 A Oj N o Prohibited to set Depending on a peripheral device used for entering parameters addresses to enter vary gt Next page Remarks Only set the module no switch when the power to the J board is OFF Use a slotted screwdriver 6 3 3 Parameter setting Specify the parameters using a peripheral dev
35. setting value of transfer code conversion 6 9 to 6 10 Sending time over interval error Setting value of sending time over interval is outside the range Check setting value of sending time over interval 6 11 Receiving time over interval error Setting value of receiving time over interval is outside the 8 1 Check setting value of receiv ing time over interval 6 11 Control relay setting error Communication error Communica tion error Error code Hexa decimal Sending receiving header terminator error Setting value of sending receiving header terminator is outside the range Treatment Check control relay settings of sending receiving header terminator 6 14 Priority Number of sending bytes error Setting value of the number of sending bytes is outside the range Set sending header terminator to absent and number of sending byte setting is variable data length Check number of sending byte setting control relay sending header terminator setting control relay 6 14 Number of sending bytes undefined error While number of sending bytes being variable data length there is no sending terminator in sending data Check sending data sending header terminator setting control relay number of sending byte setting control relay sending header terminator setting parameter 6 12 6 14 Number of receiving bytes erro
36. t in parameter Error occurs by ROM sum check RAM read write check inside the module When the transfer mode is half duplex both the module and an external device send data or communication cable is shorted Check external device communication cable Replace this board Check sending receiving timing with external device Check communication cable Lighting LED Module error Watchdog timer timed over Replace the module FT a SMB error SM3 is set to other than 0 Set SM3 to 0 _ ES Chapter 9 Specifications 1 Generaleral specifications Specifications Ambient apsration 0 to 55 C 35 to 90 without dew condensation temperature Storage temperature humidity 20 to 70 C 35 to 90 RH without dew condensation JIS C0911 or equivalent Duplex width 0 15 mm 10 to 55 Hz 1 G 55 to 150 Hz 2 hours Vibration each in the X Y and Z directions JIS C0912 or equivalent 10 G 3 times in X Y and Z directions 1000 Vp p 1us by noise simulator Voltage charged between the 24 VDC line pin 9 and the FG on the motherboard Any of the 3 directions Shock Noise immunity Installation direction Grounding Class 3 grounding Accessories 4 screws Semuth M3 x 6 mm 4 standoffs 15 mm 2 Performance specifications Item Specifications I O relays 64 points dummies Data relay 128 points Parameter settings 128 bytes 210 mA
37. ta of CPU board to ASCII form Sending header terminators are sent without conversion Receive data from an external device without conversion At sending CPU board data register MSB LSB Inside of sending buffer Upper Lower of the module 4 bits_ 4 bits BIN gt ASCII conversion Sending data 1st byte Sending External device 1st char je 2nd char Terminator o o o I rcd Top dat Lower 4 bits n th Upper byte g 4 bits e 2nd char Max value of n 2 points is 512 At receiving Same as receiving of setting value OOuex 6 9 Parameter name Transfer code conversion Setting value Hexadecimal Contents Sending Non conversion Receiving ASCII BIN conversion Send CPU board s data without conversion After converting data from an external device from ASCII to BIN take as CPU board s data Only 0 to 9 A to F are usable as ASCII characters for receiving data except receiving header terminator At sending Same as sending of setting value O0uex See previous page At receiving CPU board data register MSB LSB Inside receiving buffer ist Upper Lower of this board byte 4bits 4 bits i d ASCII BIN conversion Receiving data Receiving External device 2nd char n th Upper Top data byte 4 bits Ma
38. ta to the CPU board by F 85 instruction while Rack turns from OFF to ON and turns OFF after completion of transfer CS Ready sending Monitors CS control signal of RS 232C at the CPU board and turns ON when an external device is ready to receive data CS signal voltage is 3 to 15 V Unbv Available operation of this board This board turns ON this signal when it ready to operate and keeps ON condition with both of the below conditions 1 Completion of transfer parameter from the CPU board to this board 2 Mode switch is set to 0 Error code See page 8 1 and 8 2 This board converts errors which occurred inside to error codes and outputs to this address Error code becomes O0uex normal operation at following conditions 1 When Troy relay turns from OFF to ON 2 J board starts operation from stopped condition When more than one errors occurs this board outputs a priority error code Address Name of control relay Setting value or output value Details Receiving header terminator Receiving header Receiving terminator Ouex Absent Absent 1 HEX EXP1 header EXP1 terminator 2HEX EXP2 header EXP2 terminator SHEx Absent CR 4ugx Absent LF 5uex Absent CR LF GHex STX ETX T ugx 2 STX ETX BCC 1 byte Other than above Setting prohibite
39. transfer ASCII BIN conversion 3 3 data 35 Es bytes gE rs gs cs uu cg Men LB 3 1 Chapter 4 Name and Function of Each Part Z 354J Y f Y ON Bus connector CN1 u connection to another board SW1 RACK No RX S 2 4 Green BS Les ON EA LED Red EB CK FT SW3 Tu Module No switch SW4 SW4 Q 89 lo o External communication connector CN2 Ww 231 D sub 25 pin female Details are on page 5 2 Termination resistance switch Sw5 Self diagnosis switch SW6 lt z e o Setting switches Setting Switch name Switch type when Setting details delivered Specify a rack no Dip switch 3 poles Factory setting Rack address 0 SW2 Dip switch 2 poles Use it with the factory setting ON SW3 Rotary switch 0 to F Use it with the factory setting 0 SW4 Module No Specify a parameter area and a control relay Switch Rotary switch 0 to 9 area Only need to set this switch when connecting anti by selecting the RS 422A protocol Prod M cud Slide switch 1 pole ON enables a termination resistance and OFF removes the termination resistance For details see the next page SW6 S
40. uction 1 Set the relay number Start retry Any number Troy Trea Urpy The number set with the module no switch on this board see App 2 2 Setting value of F 86 instruction Number of sending bytes 0 to 256 257 to 512 Set 001 oct to 377oct for O to 255 ni transfer bytes and 000oct for 256 of number of 0000cT sending bytes Set the top address of sending data l 40000 to 11577 b0000 to b1777 09000 to 99777 E0000 to E1777 D top address SW switch setting Specify the module number switch value of this board 0 to 7 n2 transfer data 0 0 n 1 number of Set 0010cr to 3770cT for 257 to 511 and transfer bytes 0000cr for 512 of number of transfer bytes Set the 257th byte address counting from address D D top address n2 transfer area 7 1 2 Data receiving When start relay turns from OFF to ON while there is data from an external device in the module sending buffer the module transfers data in receiving buffer to data register of J board instruction The retry relay function is capable of re transferring data which was not executed data transfer by F 85 instruction As for functions of each control relay see page 6 13 F 047 ONLS Idi eee dd Rack Rrpy PRRD ni SW n2 D F 085 _ ME Retry PRRD n SW n D Add instruction in when number of sending bytes is more than
41. w it will not be well ventilated Make sure the installation allows enough space above the board so that the surrounding temperature does not rise above 55 C a Lf wes ventilation 2 2 Chapter 3 System Configuration Personal computer NC liquid crystal Stacking structure terminal or similar Up to 4 I O boards or communication devices boards can be connected Upstream communication port RS 232C 1 1 RS 422A N 1 Either RS 232C or 422A standards can be used for commu nication with a host FG controller Simultaneous use of both standards is not Terminal block 7P 24 VDC in possible o o Bar code reader printer etc I o fF O Z 354J Serial interface board Data flow chart CPU board This board Z 354J External device Data register Common RAM Sending buffer Data ie sending header terminator Sendi ng data Data inen dones U 5 Sending m 5 Max transfer BIN gt ASCII conversion 2 5 82 data 82s eg bytes DES Os ge 5 xe x d Delete receiving header Receiving buffer Data E Receiving data f Data Non conversion D os Receiving 5 os e je Max
42. x value of n 2 places is 512 Be sure to set number of receiving characters to even by an external device Sending BIN ASCII conversion Receiving ASCII gt BIN conversion Send data after converting CPU board s data from BIN to ASCII Send header terminators without conversion After converting data from an external device from ASCII to BIN take as CPU board s data Only 0 to 9 A to F are usable as ASCII characters for receiving data except receiving header terminator At sending Same as sending of setting value 014uex See previous page At receiving Same as receiving setting value O2 ex 6 10 Parameter name Setting value Hexadecimal 00 Initial value O0 ms 01 100 ms 02 200 ms Sending time over interval 03 300 ms 04 400 ms 05 500 ms 06 600 ms 07 700 ms 08 800 ms 09 900 ms 0A 1000 ms 0B 1100 ms 0C 1200 ms oD 1300 ms 0E 1400 ms OF 1500 ms 10 1600 ms 11 1700 ms 12 1800 ms 13 1900 ms 14 2000 ms Other than above Setting prohibited Details While sending data when data stops at a middle of 1 data frame see page 6 16 the timer starts When this board does not send next data until the sending time over interval a sending time out error occurs When this board sends next data it resets
43. ytes No of receiving bytes Data e When t is longer than T an interval of number of receiving bytes becomes 1 data frame e When t passes T set time the Module treats it as receiving time out error and rejects received data Receiving header absent Receiving termina tor present Suex tO 5uex Including above conditions at HEX 2uex Parameter setting Setting value Invalid ti No of transfer bytes 1 data frame Receiving terminator Receiving terminator An interval after receipt of terminator to receipt of next termi nator becomes 1 data frame Receiving header present Receiving termina tor absent Above case only with 1 zx 2uex parameter settings 0 byte 000042 Receiving header No of transfer bytes _ 1 data frame An interval from header to T time out of t becomes 1 data frame 1 to 512 bytes 0001 HEX to 0200uzx t 24 No of transfer bytes No of receiving bytes 1 data frame An interval from header to number of receiving bytes becomes 1 data frame Data Receiving header Receiving header present Receiving termina tor present THex GHex Setting value ti No of transfer bytes 1 data frame Receiving header Receiving terminat
Download Pdf Manuals
Related Search
Related Contents
18V Cordless Impact Driver Bedienungsanleitung SMTET documentation BCPS 2440 - Kernex Microsystems Model SC72 Personal Conductivity Meter LEDT-21881-LJ9+CO-2180 Wireless LAN Access Point Dataflex ViewKnight Monitor Arm 352 ASUS UX305FA User's Manual Copyright © All rights reserved.
Failed to retrieve file