Home

Serial interface module JW-21SU User's manual

image

Contents

1. O25 LRD 130 eee JW 21SU SD RS 232C OO RD i o RS 422 lt RS Frame ground gt Cs Sending data JW 21SU External device Receiving data JW 21SU External device Request to send JW 21SU External device Ready to send JW 21SU lt External device Not used Signal ground Not used Sending signal JW 21SU External device Receiving signal JW 21SU e External device 14 to 25 Not used 2 Connection example 1 RS 232C In case of control signal absent XON XOFF manual or XON XOFF automatic JW 21SU Shield cable External device 15 m or less RS and CS of external device might be shorted in accordance with specification available operation at RS 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 2 RS 232C In case of control signal RS CS manual or RS CS automatic JW 21SU Shield cable Es device 15 m or less 3 RS 422 4 wire system 1 by N connection is available Max 15 sets for N e EX 2 Ext Shield cable Shield cable i SD i Hy mI 1 km or less x Ext Shield cable
2. esee 3 ET Termination resistance switch 5 Transfer code conversion 17 18 Sending Non conversion Receiving Non conversion 17 Sending BIN ASCII conversion Receiving Non conversion 17 Sending Non conversion Receiving ASCIIBIN COnWerslOn 4 3 eicere 18 Sending BIN ASCII conversion Receiving ASCIIBIN conversion 18 Transfer mode 13 18 13 Full duplex Half duplex Transfer rate 13 Tany 21 Trea 21 U Urnpy 21 IV Variable data length eeeee 23 Iw WIIG icu imet erue Lee ee rao iae qute heroe 7 z Z 101HE RS 232C RS 422 convertor 5 9 SHARP SHARP MANUFACTURING SYSTEMS CORPORATION 2 0v 12 1998 Printed in Japan 0 1 Y S
3. 000027 000227 000427 000627 001027 001227 001627 EXP2 terminator 000030 000230 to to 000176 000376 000430 000630 001030 001230 000576 000776 001176 001376 001630 to 001776 Not used 000177 000377 000577 000777 001177 001377 001777 BCC code For kinds of support tools which is set by register address of parameter address and file 1 see page 13 37 2 JW30H 1 Rack No 0 000000 000200 000400 000600 001000 001200 001400 001600 Parameter transfer 000001 000201 000401 000601 001001 001201 001401 001601 BCC calculation 000002 000202 000402 000602 001002 001202 001402 001602 Communication mode 000003 000203 000403 000603 001003 001203 001403 001603 Transfer mode 000004 000204 000404 000604 001004 001204 001404 001604 Transfer rate 000005 000205 000405 000605 001205 001405 001605 Data length 000006 000206 000406 000606 001206 001406 001606 Stop bit 000007 000207 000407 000607 001207 001407 001607 Parity 000010 000210 000410 000610 001210 001410 001610 Control signal 000211 000411 000611 001011 001211 001411 001611 Transfer code conversion 000212 000412 000612 01412 001612 Sending time over interval 013 000013 000213 000413 000613 001013 001213 001413 001613 Receiving time over interval 014 000014000214 000414 000614 001
4. Rrea JW30H 2 JW 21SU Rack Raoy JW30H c JW 218U Error code Sending header terminator Receiving header terminator Number of sending bytes Lower JW30H 2 JW 21SU Number of receiving bytes Upper Number of transfer bytes Lower JW30H c JW 218U Number of transfer bytes Upper Number of receiving bytes Lower JW30H JW 21SU Number of receiving bytes Upper Not used 43 2 Rack No 1 3200 8220 13240 8260 33300 3320 13340 13360 RS Rrco Trov JW30H JW 21SU 3201 13221 13241 Ja261 j3301 3321 13341 9361 Urov cs Pace Rav Trea JW30H e JW 218U 3202 13222 13242 8262 Ja302 3322 3342 J3362 Error code 8208 3223 13243 3263 3303 3323 3343 3363 Sending header terminator Receiving header terminator 13204 13224 3244 13264 3304 3324 13344 3364 Number of sending bytes Lower JW30H 2 JW 21SU 3205 13225 3245 13265 13305 3325 3345 J3365 Number of receiving bytes Upper 3206 13226 13246 j3266 3306 13326 3346 3366 Number of transfer bytes Lower JW30H c JW 21SU 3207 3227 3247 13267 3307 13327 13347 3367 Number of transfer bytes Upper 3210 3230 3050 3270 13310 3330 3350 3370 Number of receiving bytes Lower JW30H gt JW
5. 003202 003402 003602 Communication mode 002003 002208 002403 002603 003003 003203 003403 003603 Transfer mode 002004 002204 002404 002604 003004 003204 003404 003604 Transfer rate 002005 002205 002405 002605 003005 003205 003405 003605 Data length 002006 002206 002406 002606 003006 003206 003406 003606 Stop bit 002007 002207 002407 002607 003007 003207 003407 003607 Parity 002010 002210 002410 002610 003010 003210 003410 003610 Control signal 002011 002211 002411 002611 003011 003211 003411 003611 Transfer code conversion 0020121002212 002412 002612 003012 003212 003412 002213 002413 002613 003013 003213 014 oo2014 002214 002414 002614 003014 003214 003414 015 loo2015 002215 002415 002615 003015 003215 003415 016 002016 002216 002416 002616 003016 003216 003416 002017 002217 002417 002617 003017 003217 003417 017 0 002022 002222 023 002023 002223 002422 002423 020 002020 002220 002420 002620 003020 003220 003420 021 002021 002221 002421 002621 003021 003221 003421 22 002622 003022 003222 003422 002623 003023 003423 003612 003614 003615 003616 003617 003620 003621 003622 003623 002024 002224 002424 002624 0
6. Parameter transfer 006001 006201 006401 006601 007001 007201 007401 007601 BCC calculation 006002 006202 006402 006602 007002 007202 007402 007602 Communication mode 006003 006203 006403 006603 007003 007203 007403 007603 Transfer mode 006004 006204 006404 006604 007204 007404 007604 Transfer rate 006005 006205 006405 006605 007205 007405 007605 Data length 006006 006206 006406 006606 007206 007406 007606 Stop bit 006007 006207 006407 006607 007207 007407 007607 Parity 006010 006210 006410 006610 007210 007410 007610 Control signal 006011 008211 006411 006611 007011 007211 007411 007611 Transfer code conversion 002012 006212 006412 006612 007012 007212007412 007612 013 006013 006213 006413 006613 007013 007213 007413 007613 014 015 016 017 020 006020 006220 006420 0 021 006021 006221 006421 022 006014 006214 006016 006216 006015 006215 006414 006415 006416 006614 007014 007214 007414 006615 007015 007215 007415 006616 007016 007216 007416 006017 006217 006417 006022 006222 006023 006223 006422 006423 006617 007017 007217 007417 06620 007020 007220 007420 006621 007021 007221 007421 006622 007022 007222 007614 007615
7. Data Variable data length Tap data 0000nex 1 data frame Calculate the number of sending bytes automatically Setting sending header terminator set in Present the JW20H 30H data with control relay Luex tO 7uex is required Data from JW20H 30H No of sending byte Sendin Sendin header Data lerminalio 1 to 512 bytes 000 nex to 0200uex lt Top data 1 data frame je Add sending header terminator set by control relay automatically 26 5 Receiving data Relationship between receiving header terminator number of receiving bytes P 24 receiving time out interval P 21 number of transfer bytes P 24 with 1 data frame of receiving data are as follows t t are intervals between each receiving data T as receiving time out interval E idataframe te 0000rex No of transfer bytes Receiving header absent When both t and t are longer than T an interval length be Receiving terminator tween each start point of t and t becomes 1 data frame absent Ouex Data Including above conditions at 1uex lo 1 data frame 2uex Parameter poe D setting HEX No of transfer bytes No of receivir When t is longer than T an interval of number of receiving bytes becomes 1 data frame When t becomes passed T set time the Module treats it as receiving time out error and rejects
8. gt 4 a 5 With turning start relay 04100 from OFF to ON the module stores screen number received from the Satellite monitor L2 to register 09100 to 09102 of JW20H x E E o E Ei i 5 D E S When the module is abnormal EA EB or FT on indication panel lights see page 35 and stores error code in control relay area see page 23 The stored address is fixed by module No switch setting of the module 1 Causes and treatments for errors E Parameter transfer error BCC calculation error Communication mode error Transfer mode error Transfer rate error Data length error Stop bit error 00 Normal operation EE Set other than 22nex in parameter transfer Setting value of BCC calculation is incorrect Setting value of communication mode is outside the range Setting value of transfer mode is outside the range Setting value of transfer rate is outside the range Setting value of data length is outside the range Setting value of stop bit is outside the range Check setting value of parameter transfer P 15 Check setting value of BCC value P 15 Check setting value of corhmunication mode P 15 Check setting value of transfer mode P 15 Check setting value of transfer rate P 15 Check setting value of data length P 16 Check setting value of stop bit P 16 R
9. 00 Initial value Completion of BCC calculation Execution of BCC calculation At changing parameter set to O1nex When the JW20H 30H changes from stop mode program mode to operation mode or it turns from OFF to ON it calcu lates BCC codes of parameter setting contents and stores in parameter address 177 When the calculation is completed set to OOuex Commu nication mode Transfer mode 00 Initial value 00 Initial value RS 232C Transfer mode is fixed to full duplex RS 422 2 wire system Transfer mode is fixed to half duplex Full duplex Both sending and receiving data at the same time is possible n case of RS 422 2 wire system it is fixed to half duplex so that this setting is invalid Half duplex Execute sending and receiving alternately n 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 device s 03 2400 bits s specifications 04 1200 bits s 05 600 bits s 15 Data to be subject to JIS code binary data special character 1 T T 00 Initial value 0 po p1 ve os ps ps pe o7 Parij Star Data length P arity Stop bi 8 bits Ex 2 bits 7 bits Data to be subject to ASCII code only Data length
10. 000205 000404 000405 000604 001004 001204 001404 000605 001005 001205 001405 000006 000206 000406 000606 001006 001206 004406 000407 000607 001007 001207 001407 001607 Parity 000410 000610 001010 001210 001410 001610 Control signal 006 007 010 011 012 013 000007 000010 000011 000012 000013 000207 000211 000212 000213 000210 000411 000412 000413 014 000014 000015 000214 000215 000414 000415 000611 001011 001211 001411 000612 001012 01412 000613 001413 000614 001414 000615 0010151001215 001604 001605 001606 Transfer rate Data length Stop bit 001611 Transfer code conversion 001612 001613 001614 001615 000016 000216 000416 000616 001016 001216 001616 000017 000217 000417 000617 001017 001217 901617 Sending time over interval Receiving time over interval EXP1 header 000020 000220 000420 000620 001020 001220 001620 000021 000221 000421 000621 001021 001221 001621 EXP1 terminator 000022 000222 000422 000622 001022 001222 001622 000023 000223 000423 000623 001023 oot 228 001623 000024 000224 000424 000624 001024 001224 001624 000025 000225 000425 000625 001025 001225 001625 EXP2 header 000026 000226 001626 000426 000626 001026 001226
11. 007616 007617 007620 007621 007622 006623 007023 007223 007623 006024 006224 006424 006624 007024 007624 006025 006225 006425 006625 007025 007625 Sending time over interval Receiving time over interval EXP1 header EXP1 terminator EXP2 header 006026 006226 006426 006626 007026 007626 006027 006227 006427 006627 007027 007627 EXP2 terminator 006030 006230 to to 006176 006376 006430 006576 006630 007030 006776 007176 007630 to 007776 Not used 006177 006377 006577 006777 007177 007777 BCC code For kinds of support tools which is set by register address of parameter address and file E see page 13 41 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 1 JW20H Finca JW20H gt JW 218U Raov JW20H c JW 21SU Error code Sending header terminator Receiving header terminator Number of sending bytes Lower JW20H JW 218U Number of receiving bytes Upper Number of transfer bytes Lower JW20H JW 21SU Number of transfer bytes Upper Number of receiving bytes Lower JW20H JW 21SU Number of receiving bytes Upper 42 2 JW30H 1 Rack No 0
12. 2 15morless 3 Data flow chart JW20H JW 21SU Sending data i Control code to request displayed Data register screen number 1 Fay Address Setting value Char Ada header Ese gt 09000 3EnEx gt Se p 09001 SOngx P Receiving data Screen number terminator Delete termi nator CR 2 2 gt en Current display Screen number is 255 30 4 Settings of JW 21SU and JW20H 1 Parameter address and control relay address Set module number switch as 0 With this setting each address will be fixed See page 37 and 42 Other relay allocation 04000 for sending 04100 for receiving 04001 for sending 04101 for receiving 2 Sending receiving header terminator setting wo Sending header Esc Sending terminator absent Receiving header absent Receiving terminator CR Address 0203 13ugx Address T 0 Setting value Char 014 EXP1 015 header 016 Sending header EXP1 header Sending terminator EXP1 terminator Receiving header Absent Receiving terminator CR 017 EXP1 020 terminator 021 Set by program Set by support tool Number of sending bytes Set 2 bytes of character gt and P by program For details see page 24 Address 0204 02 x Number of byte at lower digit Address 0205 OOuex Number of byte at upper digit Number of receiving bytes Setti
13. 21SU 8211 3231 13251 18271 18311 13331 8351 3371 Number of receiving bytes Upper 8212 18232 3252 3272 3312 13332 13362 3372 to to to to to to to to Not used 8217 8237 3257 3277 3317 13337 3357 13377 44 3 Rack No 2 8540 Pinto JW30H 5 JW 218U 8541 Rav JW30H c JW 218U 3542 code 8543 8563 Sending header terminator Receiving header terminator 3544 Number of sending bytes Lower H gt JW 21SU 43545 3565 Number of receiving bytes Upper 8546 13566 Number of transfer bytes Lower JW30H c JW 21SU 13547 13567 Number of transfer bytes Upper 8550 13570 Number of receiving bytes Lower JW30H 2 JW 218U 8551 3571 Number of receiving bytes Upper 13552 13572 Not used 13557 13577 45 4 Rack No 3 Troy JW30H 2 JW 218U Trea Error code JW30H JW 21SU Sending header terminator Receiving header terminator Number of sending bytes Lower Number of receiving bytes Upper JW30H JW 21SU Number of transfer bytes Lower Number of transfer bytes Upper JW30H c JW 218U Number of receiving bytes Lower Number of receiving bytes Upper JW30H JW 218U 46 Not used A
14. 911574 2000 to 917574 950000 to b1774 b2000 to b3774 09000 to 999774 E0000 to Q E7774 file 1 000000 to 9037774 JW20H 0 to 7 module No switch 0 to 7 JW30H 00 to 37 upper digit rack No 0 to 3 lower digit module No switch 0 to 7 Set 001ocr to 3770cr for 257 to 511 and 000ocrt for 512 of number of transfer bytes Set the 257th byte address counting from address D 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 JW20H 30H by F 85 in struction 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 23 Setting value of F 85 instruction F 44 ttt 1 Rack Rroy D y Retry D F 48 ONLR 07354 l O 07355 Non cari Rroy Retry peed Error orang Zu i i L I Start Carry Rroy Uroy Rrea 3 RREO Number of sending bytes For the F 85 setting value see the following chart Add instruction in when number of sending bytes is more than 257 bytes up to 512 bytes For the F 85 setting value see the following chart Relay No swtting value Start Manaul number Retry Manual number Tapy TREO Unpy Number wh
15. JW 14PG to the JW20H 30H control module 2 Change the program mode PROG Le D s B3 You can change the parameter setting display from the monitor mode or the change mode 8 Select the initial mode Assign the switch number of the module for which you want to enter parameter e 5 q _ Input the setting value of swicth Parameter Special O JW20H 0 to 7 JW30H 00 to 37 8 Read the address of the parameter to be set STEP 1 Sol the parameter To the direction of increase STE e n the direction of decrease 8 Write the set number value in hexadecimal notation 0 Special I O 176 HEX 0 177 eo el 7 A I PARAM T S W 2 Module No 2 Setting value ENT gt 000 HEX 22 p ESI Address Display Data code Repeat for the number of required times Note Make sure to enter 22 H and 01H for the parameters at address 000 and 001 respectively 2 Parameter setting contents The address shown below is parameter address In case of register address of file 1 refer to appendix 1 P 37 to 41 Parameter transfer 22 Initial value 00 Execution of parameter transfer When the JW20H 30H changes from stop mode program mode to operation mode or it turns from OFF to ON transfer parameter from JW20H 30H memory to the module Other than 22nex is treated as prameter transfer error BCC caculation
16. of sending byte setting contro relay sending header terminator setting control relay P 24 Control reelay setting error Number of sending bytes undefined error While number of sending bytes being variable data length there is no sending terminator in sending deta Check sending data sending header terminator setting control relay number of sending byte setting control relay sending header terminator setting parameter P 22 24 Communication error Hardware error Communica tion error 34 Number of receiving bytes error Parity error Framing error Overrun error Overflow error Data conversion error Setting value of number of receiving byte is outside the range Error occurs by parity check during receiving data Receiving data is abnormal Receiving data exceeds receiving buffer capacity Number of receiving bytes exceeds 512 bytes which is a limit to transfer to JW20H 30H Receive unable to convert code by ASCII gt BIN conversion of receiving data 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 number of receiving byte setting control relay P 24 Check communication setting with external device Check external device communication cable Check communication setting with external device Check external device communication
17. 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 OV 0 bo External RSsignal pCi j device External Receiving data _1 2 3 424 caes device JW20H 30H 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 bytes RS signal turns to 0 and requests to send data to an external device Number of vacant data bytes of 16 bytes receiving buffer pae rnat levice hy Receiving data 5 h7 bytes RS signal 7 External device Match setting of control signal at external device side to the module settings 17 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 tuex 2 Data stops sending by receiving XOFF 13uzx Sending data 1 2 3 4 5 External A Re
18. using a module No switch Be sure not to set same number with other special I O module gm Rack No 3 JW 28ZB 38ZB Module No switch SAT t 18 no MPS AS P 3 Setting at delivery 0 Module No switch 8 and 9 are setting prohibited RackNo 2 JW 28ZB 38ZB Rack No 0 JW 28KB 38KB Set switch when power to JW20H 30H is OFF In case of JW20H The parameter area and control relay area can be set by using module No switch of each rack 000 to 177 000000 to 000177 0200 to 0217 000 to 177 000200 to 000377 0220 to 10237 000 to 177 000400 to 000577 0240 to 0257 000 to 177 000600 to 000777 0260 to 10277 000 to 177 001000 to 001177 0300 to 0317 000 to 177 001200 to 001377 0320 to 0337 000 to 177 001400 to 001577 0340 to 0357 000 to 177 001600 to 001777 0360 to 0377 0 1 2 3 4 5 6 7 In case of JW30H The parameter area and control relay area can be set by using module No switch of each rack 000 to 177 000000 to 000177 3000 to 3017 000 to 177 000200 to 000377 3020 to 3037 000 to 177 000400 to 000577 8040 to 3057 000 to 177 000600 to 000777 3060 to 3077 000 to 177 001000 to 001177 3100 to 3117 000 to 177 001200 to 001377 3120 to 3137 000 to 177 001400 to 001577 8140 to 3157 000 to 177 001600 to 001777 3160 to 3177 000 to 177 002000 to 002177 82
19. 00 to 13217 000 to 177 002200 to 002377 8220 to 3237 000 to 177 002400 to 002577 8240 to 13257 000 to 177 002600 to 002777 18260 to 3277 000 to 177 003000 to 003177 8300 to 13317 000 to 177 003200 to 003377 3320 to 13337 000 to 177 003400 to 003577 8340 to 3357 000 to 177 003600 to 003777 3360 to 13377 000 to 177 000 to 177 000 to 177 000 to 177 005000 to 005177 3500 to 3517 000 to 177 005200 to 005377 3520 to 13537 000 to 177 005400 to 005577 3540 to 3557 000 to 177 005600 to 005777 3560 to 3577 000 to 177 006000 to 006177 3600 to 3617 000 to 177 006200 to 006377 3620 to 3637 000 to 177 006400 to 006577 3640 to 3657 000 to 177 006600 to 006777 3660 to 13677 000 to 177 007000 to 007177 3700 to 3717 000 to 177 007200 to 007377 13720 to 3737 000 to 177 007400 to 007577 8740 to 13757 000 to 177 007600 to 007777 8760 to 3777 wiola iioi iea jlo alaj jojn O IN mM His jo N jejo IN j ojana jv jni lo 2 Parameter setting Set the operating conditions for the JW 21SU into the JW20H 30H s parameter area The support tools given below can be used to set the parameters Set to parameters Set to parameters rack 0 only No JW 10PG Set in file 1 JW 11PG Set to parameters JW 12PG Set to parameters Set to parameters rack 0 only Note 2 Set to file E Note 3 JW 13PG Set
20. 014 001214 001414 015 000015 000215 000415 000615 001215 001415 001615 000415 001015 001215 001415 E udi 016 000016 000216 000416 000616 001016 001616 017 000017 000217 000417 000617 001017 001617 020 000020 000220 000420 000620 001020 001220 001420 001620 000021 000221 000421 000621 001421 001621 terminator 000022 000222 000422 000622 001022 001222 001422 001622 000023 000223 000423 000623 001023 001223 001423 001623 000024 000224 000424 000624 001024 001224 001424 001624 000025 000225 000426 000625 001025 001225 001425 001625 000026 000226 000426 000626 001026 001226 001426 001626 000027 000227 000427 000627 001027 001227 001427 001627 000030 000230 000430 000630 001030 001230 001630 to to to to to Not used 000176 000376 000576 000776 001176 001376 001576 001776 000177 000377 000577 000777 001177 001377 001577 001777 BCC code EXP2 header EXP2 terminator For kinds of support tools which is set by register address of parameter address and file E see page 13 38 2 Rack No 1 000 002200 002400 002600 003000 003200 003400 003600 Parameter transfer 002001 002201 002401 002601 003001 003201 003401 003601 BCC calculation 002002 002202 002402 002602 003002
21. 03024 003424 003624 002025 002225 002425 002625 003025 003425 003625 Sending time over interval 003413 003613 Receiving time over interval EXP1 header EXP1 terminator EXP2 header 002026 002226 002426 002626 003026 003426 003626 002027 002227 002427 002627 003027 003427 003627 EXP2 terminator 002030 to 002176 002230 to 002376 002430 to 002576 002630 003030 002776 003176 003430 003630 to to 003576 003776 Not used 002177 002377 002577 002777 003177 003577 003777 BCC code For kinds of support tools which is set by register address of parameter address and file E see page 13 39 3 Rack No 2 004000 004200 004400 004600 005600 Parameter transfer 004001 004201 004401 004601 005601 BCC calculation 004002 004202 004402 004602 005602 Communication mode 004003 004203 1004403 004603 005603 Transfer mode 004004 004204 004404 004604 005604 Transfer rate 004005 004205 004405 004605 005605 Data length 004006 004206 004406 004606 005606 Stop bit 004007 004207 004407 004607 005607 Parity 004010 004210 004410 004610 005010 005610 Contro signa 004011 004211 004411004611 005011 005611 Transfer code conversion 004012 004212 004412 004612 005012 005612 Sending time over interval 004013 004213 004413 004613 005
22. 413 005613 Receiving time over interval 004014 004214 004414 004614 005414 005614 005215 004015 004215 004415 004615 005015 005215 005415 005615 EXP1 header 004016 004216 004416 004616 005016 005216 005416 005616 004017 004217 004417 004617 005017 005217 005417 005617 004020 004220 004420 004620 005020 005220 005420 005620 faites Diar rera 005020 005220 _ EXP1 terminator 004021 004221 004421 004621 005021 005221 003421 005621 004022 004222 004622 005022 005222 005422 005622 004023 004223 004423 004623 005023 005223 005423 005623 004024 004224 004424 004624 005024 005224 005424 005624 004025 004225 004425 004625 005025 005225 005425 005625 EXP2 header 004026 004226 004426 004626 005026 005226 005426 005626 004027 004227 004427 004627 005027 005227 005427 005627 004030 004230 004430 004630 005030 005230 005430 005630 to to to to Not used 004176 004376 004576 004776 005176 005376 005576 005776 004177 004377 004577 004777 005177 005377 005577 005777 BCC code EXP2 terminator For kinds of support tools which is set by register address of parameter address and file E see page 13 40 4 Rack No 3 006000 006200 006400 006600 007000 007200 007400 007600
23. At communication with an external device the data length of which is fixed to 7 bits 1 T T oo o2 es 04 es os Par 0 Start rir Stop bi bit ata len Ks bit 7 bits Ex 2 bits Atdata se Tees oe on JW20H 30H dat bum 1 byte Neglect Atdata receiving D7 06 Ds D4 D3 D2 01 po me Becomes 0 00 Initial value Select to match the external device s Stop bit specifications 01 Even 00 Set and check that length of total amount of bits of data Do to D Initial value Do to De at 7 bits data length and ON bit of parity bit becomes even Odd e 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 16 Control signal 00 Initial value Absent No check concerning communication 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 sending Sendingdata 1 2 3 a 5 6 A External device CS signal H Extemal device Control receiving data by RS relay 1 When RS relay is OFF RS signal becomes 1 and requests to stop data
24. E A Maei eee TU y The module need not necessarily be end station 4 RS 422 2 wire system 1 by N connection is available Max 15 sets for N 1 S External device A d EX 2 Shield cable g hield cable Shield cable Sari 1 km or less The module is not necessary to be end station 5 In case of using Z 101HE RS 232C RS 422 convertor 1 4 wire system Shield cable Shield cable RS 422 4 wire system RS 232C Grounding 1 TD 2 TD O 3 RD 7 RD O3 1 km or less 15 mor less 2 2 wire system automatic Shield cable Shield cable RS 422 External device 2 wire system f RS 232C rounding 1 10 SD RD 2 11 SD RD 3 L f 1 km or less 15 m or less RS and CS of external device might be shorted in accordance with specification available operation at RS 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 HITACHI CABLE LTD CO SPEV SBO 5 S IREV SW2 0 5 Wire the communication cable as far apart as pos
25. JW 21SU JW 21SU EN RS 422 External device External device RS 232C o 15 m or less 1 km or less 2 When RS 422 is applied max 15 sets of external devices are connectable JW 21SU External device max 15 sets A Se M RS 422 _RS 422 RS 422 B 1 km or less 3 Up to 8 sets in JW20H and 32 sets in JW30H for special I O module including the others are installable into a basic expansion rack panel of JW20H 30H 4 Applicable to various data formats for exchanging data with external device 5 Max 512 bytes of data sending receiving is possible 6 Outputs error information by error codes Follow the cautions below to operate and store the the module JW 21SU Installation and storage condition Do not install the JW 21SU in the following conditions Direct sunlight ambient temperatures below 0 C and over 55 C at storage 20 C to 70 C Relative humidity which exceeds 35 to 90 Condensation due to rapid temperature variation Corrosive and flammable gases Vibration and shock producing and being transferred positions Combination and mounting In case of JW20H make a configuration not to exceed 8 sets of modules including other special I O module on a basic expansion rack panel of JW20H When more than 8 sets are installed the JW20H will not operate n case of JW30H up to 32 sets of special I O
26. LF STX ETX ETX BCC Non conversion BIN lt gt ASCII conversion Individual setting for sending receiving 1 to 512 bytes Shielded twisted pair cable Cable total length Max 15 m RS 232C Max 1 km RS 422 170 mA 5 VDC 20 to 70 C 0 to 55 C Ambient humidity 35 to 90 without dew condensation Vibration resistance JIS C0911 or equivalent same condition as JW20H 30H Shock resistance JIS C0912 or equivalent same condition as JW20H 30H Noise immunity 1000 Vp p 1p1s by noise simulator Weight Approx 200 g Accessories Outside dimensions One instruction manual 1 pc of D sub 25P connector WASU 1 Basic Rack Panel 130 36 p Unit mm 110 Appendix 1 Parameter address and parameter name 1 JW20H 000 000000 000200 000400 000600 001000 007200 001400 001600 The below table shows the relation between address of parameter area and name of parameter set by module No switches Parameter transfer 001 000001 000201 000401 000601 001001 001201 001401 001601 BCC calculation 002 000002 000202 000402 000602 001002 001202 001402 001602 Communication mode 003 000003 000203 000403 000603 001003 001203 001403 001603 Transfer mode 004 005 000004 000204 000005
27. Version 2 0 SF ARP Produced in Dec 1998 Sharp Programmable Controller New Satellite JW20H 30H Model name Serial interface module J W 2 1S U We thank you for your purchase of the serial interface module JW 21SU for the Sharp programmable controller new satellite JW20H or JW30H This manual describes functions and usages of serial interface module Familiarize yourself with the module by reading this user s manual thoroughly Keep this manual with you as well as the instruction manuals attached to control module of PC We are sure that these booklets will be helpful whenever you face a problem Besides this manual the following manuals are provided further useful information Serial interface module User s manual this book JW20H control module User s manual hardware version Programming manual ladder instruction version JW30H control module EE User s manual hardware version Programming manual ladder instruction version Should you have any questions and inquiries feel free to contact our dealer s shop Whole or partial photocopy of this booklet is prohibited The contents of this booklet may be revised for improvement without notice Read this user s manual and attached documents carefully before installation operation maintenance and checking in order to use the machine correctly Understand all of the machine knowledge safety information and cautions be
28. a sending When the start relay turns from OFF to ON while there is no sending data in the module sending buffer the module transfers JW20H 30H 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 23 F 47 ONLS FA F 86 For the F 86 setting value see the following H Itt 1 i chart Start Treo Unor PRWR SW m F 86 Addinstruction in when number of H sending bytes is more than 257 bytes Retry PRWR SW n 2 up to 512 bytes A For the F 86 setting value see the following char Relay No swtting value F 48 Start Manaul number Retry Manual number ONLR Troy Trea Uroy Number which is decided by setting the module No switch of JW 21SU 07354 See page 42 to 46 07355 Non carry Trea Relry Eror 07356 Carry flag tums ON when only the data transfer is completed using F 86 instruction Cary Treo Troy t 1 Tror Setting value of F 86 instruction Number of sending bytes 1 to 256 257 to 512 Set 0010crto 3770crfor 257 to 511 and 000ocr for 256 of number of sending bytes Set the top address of sending data JW20H 0000 to 1577 b0000 to b1777 09000 to 99777 E0000 to E1777 JWSOH 09000 to 99777 E0000 to E7777 file 1 000000 to 037777 90000 to
29. ack No 0 13022 13042 13062 13102 13122 15142 mc Rack No 1 13222 15242 13262 13302 13322 13342 Rack No 2 13422 13442 13462 13502 13522 13542 Rack No 3 13602 13622 13642 13662 13702 33722 13742 Parity error Setting value of parity is outside the range Check setting value of parity P 16 Control signal error Setting value of control signal is outside the range Check setting value of control signal P 17 18 Transfer code conver Sion error Setting value of transfer code conversion is outside the range Check setting value of transfer code conversion P 19 20 Sending time over interval error Setting value of sending time over interval is outside the range Check setting value of sending time over interval P 21 Receiving time over interval error Setting value of receiving time over interval is outside the range Check setting value of receiving time over interval P 21 33 Sending receiving header terminator error Setting value of sending receiving header terminator is outside the range Check control relay settings of sending receiving header terminator P 24 Number of sending bytes error Setting value of the number of sending bytes is outside the range e Set sending header terminator to absent and number of sending byte setting is variable data length Check number
30. and chemicals or put metals such as copper wire pieces inside the module as this is very dangerous and may cause malfunction When the module is out of order or in abnormal condition overheating emitting a bad smell or smok ing stop operation and contact our dealer or service center Static electricity Excessive static electricity may be generated on the human body in extremely dry conditions Prior to touching the module discharge static electricity by touching grounded metals Cleaning Use dry and soft cloths for cleaning Organic solvents such as alcohol paint thinner and wet cloths may cause deformation or color change System configuration Wl Max no of installed sets JW20H 30H 8 modules including other special I O oS S modules per basic expansion rack L i panel n 32 modules including other special I O ln Ty modules per basic expansion rack panel racks 0 to 3 Cannot be installed in racks 4 to 7 When a JW 21SU is not installed in a remote I O slave station JW 21RS External device Host computer RS 232C 1 by 1 connection Satellite monitor Max 15m Printer Bar code reader etc The module e JW 21SU External device BE conriegtion Sate
31. autions How to Use Dn indication panel Initial mode Installation Installation procedure Mode switch Module No switch cesses 11 IN Name and function of each part 4 Name of control relay No of receiving bytes No of sending bytes No of transfer bytes 0 Outside dimensions Overview 49 50 P Parameter address sss 11 35 Parameter area ess 11 35 Parameter area Control relay area settings Parameter name Parameter setting Parameter setting contents Parameter transfer Execution of parameter transfer Odd Program example Program mode R Ready to send Receiving buffer Receiving data Receiving header terminator Receiving signal Receiving time over interval Register address of file 1 Request to send Pinoy RS 422 2 wire system RS 422 4 wire system sssseesee 8 IS Sending buffer esses 3 Sending data Sending header terminator Sending signal Sending time over interval Setting value of Module No switch sess Signal ground Signal name CS FG RD RD RD RS SD Specifications Stop bit Support tool SWS TERM System configuration
32. cable Check number of sending data of external device Check number of sending data of external device Check sending data of external device 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 Module error Data stopped condition while data receiving continued longer than receiving time out interval set in parameter Error occurs by ROM sumcheck 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 Watchdog timer timed over Check external device communication cable Replace the module Check sending receiving timing with external device Check communication cable Replace the module Mode switch error Mode switch is set to other than 0 Set mode switch to 0 2 Indication panel This panel indicates operation condition of the module by LED ON OFF y wasu N 7 nemo s P JW 21SU TX RX RS CS fini A07 EAEB FT MODE Lights when requesting to send data to the module from an external device Lights when ready to send data to external d
33. ceiving data K OFF ismga Control receiving data by RS relay 1 The module automatically sends XOFF 13ug by turning RS relay from ON to OFF and requests to stop sending data to an external device The module automatically sends XON 11nex by turning RS relay from OFF to ON and requests to send data to an external device Receiving data time over error by turning OFF RS relay does not occurs RS relay Gry JW20H 30H by Control Sending data Ko za External signal Receiving ate 1 2 TI TT Se ga XON XOFF automatic Transfer mode Valid at full duplex Control sending data by XON XOFF codes from external device Contenis is as same as XON XOFF manual operation Control receiving data by number of vacant data bytes of receiving buffer 1 When number of vacant data bytes is less than 16 bytes the module automatically sends XOFF 13yex and requests to stop sending data to an external device 2 When number of vacant data bytes is more than 17 bytes the module automatically sends XON 1 1nex and requests to send data to an external device Number of vacant data bytes of receiving buffer Sending data External x Receiving data 3 2 3 J4 iar Match setting of control signal at external device side to the Module settings 18 011 Tra
34. code When NUL code 00e is set thereafter set code becomes invalid so that header can use 1 to 4 characters and terminator 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 Sending receiving data Invalid Data Header Terminator NUL Invalid 2 chars 1 char When EXP2 header EXP2 terminator are set at sending header terminator or receiving header terminator of a control relay see page 24 the set code in this parameter is valid as control code Setting contents is as same as EXP1 header EXP1 terminator Not used Initial value 00 22 BCC code Setting is not required Setting by support tool is invalid Store check code of parameter The module checks parameter setting values from JW20H 30H with this code 3 Control relay Control relays are used for a program to send and receive data As for programming refer to Basic program on Chapter 8 Program Example P 28 1 Control relay contents Addresses show when the module No switch setting is 0 At settings of other numbers refer to appendix 2 P 42 to 46 Turn ON when data sending to an external device is Troy available Di Ready sending When Troy relay turns from OFF to ON
35. dure 1 Turn OFF the power to JW20H 30H T 2 Set the termination resistance switch SW3 TERM When communication mode is RS 422 2 wire system 4 wire system set termination resistance At RS 232C this setting is not required ON Insert termination resistance d le ae es OFF Do not insert termination resistance Setting at delivery ON 1 by 1 connection Rear view of the module Turn ON the switch on both of the module and external device JW 21SU External device RS 422 When Z 101HE RS 232C RS 422 convertor is using termination resistance of Z 101HE is always ON JW 21SU Z 101HE External device B RS 422 RS 232C Termination resistance is always ON Both ON OFF are available 1 by N connection Turn ON both of end stations turn OFF intermediate stations RS 422 RS 422 The module need not necessarily be end station T To next page From previous page 3 Push the module keeping the module fixing rib hanging the insert hole on the basic rack panel Tighten the module retention screw at the upper side of the module using a philips screwdriver Partition plate or control pane Basic rack panel Module insert guide Ventilation hole Modul
36. e for receiving data except receiving header terminator At sending Same as sending of setting value O0yex See previous page At receiving JW20H 30H data register MSB LSB Inside receiving buffer of the module ASCII BIN conversion Receiving data leceiving External device poeg E E 5 s E Top data X Max value of n 2 points is 512 X 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 convert JW20H 30H s data as BIN to ASCII Sending header terminators are received without conversion After converting data from an external device as ASCII to BIN take as JW20H 30H s data Only 0 to 9 A to F ASCII characters are usable for receiving data except receiving header terminator At sending Same as sending of setting value 014ex See previous page At receiving Same as receiving setting value 02uex 00 Initial value 01 100 ms 02 200 ms 03 300 ms 04 400 ms 05 500 ms 06 600 ms While sending data when data stops at a 0 middle of 1 data frame see page 26 the 7 700 ms timer starts 08 800 ms When the module does not send next data 09 900 ms until the sending time over interval sending time out error occurs When the module i OA 1000 ms E uud B sends next data it resets the timer and 0 1100 ms cont
37. e programmable controller Otherwise the machine breakdown or accident may be caused by the trouble of the programmable controller A Caution Manipulation for program change forced output RUN or STOP during operation should be done with particular care by confirming safety Misoperation may lead to machine trouble or accident 4 Maintenance Q Prohibit Don t disassemble or modify Or fire trouble or malfunction may be caused A Caution Turn OFF the power source before detaching or attaching the module Or electric shock malfunction or trouble may be caused SHARP Programmable Controller New Satellite JW20H 30H Serial interface module JW 21SU Chapter 1 Overview Chapter 2 Handling Precautions Chapter 3 System Configuration Chapter 4 Name and Function of Each Part Chapter 5 Installation Chapter 6 Wiring Chapter 7 How to Use Chapter 8 Program Example Chapter 9 Error and Treatment Chapter 10 Specifications Appendix I c o o X o D zi E 1 Alphabetical Index Table of contents Chapter 1 OvervieW Siehe do IO UR ERST 1 Chapter 2 Handling Precautions ssssssssssssss 2 Chapter 3 System Configuration sess 3 Chapter 4 Name and Function of Each Part 4 Chapter 5 Installation sss 5 Chapter 6 Wiring oie ete teet ertet ee cien 7 1 Pin arrangement of communicati
38. e retention screw Basic rack panel Power supply module Module retention rib insert hole Module retention rib Philips screwdrivi a The module Control module JW 21SU JW20H JW 21CU JW 22CU JWSOH JW 31CUH H1 JW 32CUH H1 JW 33CUH H1 H2 H3 Follow the same procedure to install the module on an expansion rack panel Priorto install the module at left end of an expansion rack panel be sure to fix a side plate supplied with the expansion rack panel in order to prevent dust intrusion Side panel In case of JW20H make a configuration not to exceed 8 sets of modules including other special O module on a basic expansion rack panel of JW20H In case of JW30H up to 32 sets of special I O module including the others are installable into only the rack No 0 to 3 of JW30H basic expansion rack panel Not installable into rack No 4 to 7 You can not install in remote I O slave station of JW20H 30H Be sure to tighten the module retention screw Looseness of screw may cause malfunction This module can connect both interface of RS 232C and RS 422 2 wire system 4 wire system through a communication connector 1 Pin arrangement of communication connector Communication connector D sub25P FG from 1 O14 sD 2 O Os RD 30 Gig RS 282C4 RS 4O cs 500 O18 eO O19 sa 7O Oz s 80 Oat 30 O22 SD 100 O23 SD 110 Oz RD 120 IW2ISU Y
39. ending data to exte Lower EX length rnal device 0001 Hex 1byte When number of byte is set to variable data No of length the module is unable to send at 0205 sending to to sending terminator being absent and au Upper bytes tomatically calculates number of sending 0200hex 512 bytes bytes at sending terminator being present Output Other than above Setting As for relationship with other settings see P prohibited next page 0000 amp ex 0 byte Setting is not required Jo206 Lower After calculating number of receiving No of data bytes from an external device transf E to to except receiving header terminator 10207 bytes the module outputs the result to this Upper address As for relationship with other settings see Input 0200 512bytes pageer o210 0000nex 0 byte Set number of byte of receiving data to ex Lower No of 1o to ternal device receivin 0200 512 b This setting is valid only when both receiv on bytes 9 HER ytes ing header terminator are absent Upper Other than Setting As for relationship with other settings see Output above prohibited page 27 24 1 4 points Become parameter setted code see page 22 2 2 points How to make the BCC code BCC check is made based on the calculation of the range from STX onward up to ETX The calcula tions are all performed in bit patterns of ASCII 7 bits codes 1 Operate XOR of the first character and the second character
40. evice from the module Lights when parameter setting is outside the setting range Lights when control relay setting is outside the setting range Lights at communication error such as parity error and time over etc Lights at hardware error of the module 35 Applicable PC New satellite JW20H JW21CU 22CU JW30H JW 31CUH H1 JW 32CUH H1 JW 33CUH H1 H2 H3 Installable slot JW20H basic expansion rack panel Max number of installed module 8 JW30H basic expansion rack panel Max number of installed module 32 Number of occupied I O points I O relay 16 points dummy Control relay 128 points use 8 bytes out of 16 bytes Parameter setting _ 128 bytes Communication procedure No protocol Number of connectable modules RS 232C 1 set RS 422 Max 15 sets Data transfer standard EIA RS 232C RS 422 2 wire system 4 wire system Transfer rate 600 1200 2400 4800 9600 19200 bits sec Synchronous mode Start stop system Transfer mode Full duplex half duplex Circuit configuration 1 1 1 N Control signal Absent RS CS manual RS CS automatic XON XOFF manual XON XOFF automatic Data length Parity Stop bit Transfer code Number of sending receiving bytes Communication line Internal current consumption Storage temperature Ambient operation temperature 7 8 bits Absent odd even 1 2 bits Absent EXP1 EXP2 CR LF CR
41. fore 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 Even in the case of A Caution 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 S it means don ts For example prohibition of disassembly is indicated as o It means a must For example obligation of grounding is indicated as e 1 Installation 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 drop trouble or malfunction Never admit wire chips or foreign matter Or fire trouble or malfunction may be caused 2 Wiring Compe Be sure to ground Unless grounded electric shock or malfunction may be caused A Caution Wiring should be done by qualified electrician Wrong wiring may lead to fire trouble or electric shock 3 Use Danger Assemble the emergency stop circuit and interlock circuit outside of th
42. ich is decided by setting the module No switch of JW 21SU See page 42 to 46 Carry flag turns ON when only the data transfer is completed using F 85 instruction 1 to 256 Set 001ocrto 377ocr for 257 to 511 and 0000cr for 256 of number of receiving bytes 257 to 512 file 1 9000000 to 9037774 Set the top address which transfer the receiving data JW20H 0000 to 1577 b0000 to b1777 09000 to 99777 E0000 to E1777 JW30H 09000 to 99777 E0000 to E7777 file 1 000000 to 037777 10000 to 1574 2000 to 7574 b0000 to b1774 b2000 to b3774 09000 to 999774 E0000 to E7774 JW20H 0 to 7 module No switch 0 to 7 gt lower digit module No switch 0 to 7 JW30H 00 to 37 upper digit rack No 0 to 3 2 Set 0010cr to 3770cr for 257 to 511 and O00ocr for 512 of number of transfer bytes Set the 257th byte address counting from address D 29 2 Example of applied program The example below shows how to connect satellite monitor L2 Z SM10 and to check screen number on L2 by JW20H 1 System configuration JW20H 30H VA JW 218U RS 232C Satellite monitor L2 2 Connection JW 21SU Shield cable Satellite monitor L2 connector the GND terminal Satellite monitor L2
43. inues sending oc 1200 ms Allowance of setting time is 0 to 100 ms oD 1300 ms Example OE 1400 ms At 00nex setting 0 ms to 100 ms OF 1500 ms At O1uex setting 100 ms to 200 ms 1600 ms 10 8 190ms 14 200ms 0 ms Sending Other than above Setting prohibited 00 Initial value 300 ms 400 ms 500 ms While receiving data when data stops at a 600 ms middle of 1 data frame see page 27 the timer starts 700 ms When the module does not receive next 800 ms data until the receiving time over interval 900 ms receiving time out error occurs When the time over 1000 ms module receives next data it resets the interval 7100 ms timer and continues sending Allowance of setting time is same as send 1200 ms ing time out interval 1300 ms When the control signal is RS CS manual 1400 ms operation or XON XOFF manual operation and RS relay is OFF receiving time error does not occur Receiving 1500 ms 1600 ms 1700 ms 1800 ms 1900 ms 2000 ms Other than above Setting prohibited 21 EXP1 header EXP1 terminator EXP2 header EXP2 terminator Initial value 00 Initial value 00 When EXP1 header EXP1 terminator are set at sending header terminator or receiving header terminator of a control relay see page 24 the set code in this parameter is valid as control
44. llite monitor etc Max 15 sets Max 1 km Data flow chart JW20H 30H The module JW 21SU External device Data register Common RAM Sending buffer Vy Add sending headerterminator Sending dat Data Data eneng ca a Data Gea a Max transfer BN ASCII conversio 1 23 2a transfer 25 EE 512 gt JEg Data 28 gt 2s Data fee bytes oc ES n s e i Receiving buffer j Data papo ro headertemiet Receiving data oe Data n conversion m o Data rz za Max transfer ASCII BIN conversion y P transfer Es Z3 512 lt lt 8 Data 8E lt 8 Data 85 2 2 gel SE bytes c ea ea cc 9 oll lle y Module retention screw For fixing to basic rack panel Ventilation hole Prevent temperature rise Mode switch Indication panel Indicate operation condition Module No switch Rati lat Set Parameter area and aung pate control relay area Communication connector Connect with external device 3 Check and adjust switch installed lower portion of the board This is exclusive for our service man Do not touch it Set to down at delivery Module insertion guide For insert into basic rack panel Termination resistance switch Set end station Module retention rib For fixing to basic rack panel Ventilation hole Prevent of temperature rise Rear side Installation proce
45. module including the others are installable into only the rack No 0 to 3 of JW30H basic expansion rack panel Not installable into rack No 4 to 7 Unlike other special I O module the JW 21SU cannot be installed on a remote I O slave station Be sure to tighten retention screws of the module Wiring Do not run communication cables parallel or close to high voltage lines and power lines Operation After install the module be sure to execute I O registration using a support tool To operate without I O registration may cause an error and the JW20H 30H and this module don t work In case of JW30H if a preset scanning time is too short less than 2 ms JW 21SU may not function normally To avoid this malfunction set a longer scanning time using a constant scan ning set 3 mm or more on the system memory 226 or other functions When setting the JW 21SU parameters make sure to set parameter address 000 22 and 001 01m Without setting these addresses to these values the JW 21SU will not be able to operate as error may occur and the JW20H 30H and this module don t work See page 15 and 33 Prior to change switches inside the module turn OFF power of the JW20H 30H Switching at power ON may cause malfunction The outside case of the module has a ventilation hole so as to prevent the inside temperature from rising Do not block this hole or prevent ventilation Be careful not to immerse in fluid such as water
46. ng is not required because receiving header absent receiving terminator present For details see page 27 With above settings concerning this program has completed Other settings are omitted As for satellite monitor L2 settings see instruction manual Chapter 12 Serial Communication mode supplied with L2 31 32 5 Program 02003 Rrea Explanation 1 Set sending receiving header terminator 023ocr 13uex 2 Set the number of sending bytes to 2 bytes 000002oc 0002 ex 04000 F 008 mn Start oct 023 0203 F 008w OCT 900002 J0204 F 008 OCT 076 09000 F 008 OCT 120 09001 F 047 ONLS 04000 F 044 02011 02017 F 086 1 th 1 1L Stat Tees UND PRWR 002 09000 0 0 04001 H Retry F 048 ONLR 07354 02011 04001 07355 Non carr Treo Retry Error 07356 02011 02001 Carry Trea Troy 02001 Troy F 047 ONLS 02014 F 044 02013 F 085 eH Rack apy PRRD 003 0 2 09100 04101 Retry F 048 ONLR 07354 02013 04101 j 1 07355Non camy Rapy Retry Error 04100 07356 02013 02017 02003 i Start Cany Rapy Unpv Rrea 3 Set character gt P to register 09000 09001 of JW20H 0760ct 3Euex 1200cr 5Ouex 4 With turning start relay 04000 from OFF to ON the module sends request to display screen number to the satellite monitor L2 1 2 r 3
47. nsfer code conversion Sending Non conversion Receiving Non conversion Send JW20H S0H 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 of the module 4 Sending data Receiving data JW20H 30H data register Non conversion 00 Initial value Sending External device 1st char lend char E H S E T t n th char Terminato Top data nth byte X Max value of n 2 points is 512 X Values in means conditions at receiving Sending BIN ASCII conversion Receiving Non conversion Send data after convert BIN data of JW20H 30H to ASCII form Sending header terminators are sent without conversion Receive data from an external device without conversion At sending JW20H 30H data register MSB LSB Inside of sending buffer of the module 1st byte Sending __ External device 01 X Max value of n 2 points is 512 At receiving Same as receiving of setting value O0nex 19 20 Transfer code conversion Sending Non conversion Receiving ASCII BIN conversion Send JW20H 80H s data without conversion After converting data from an external device as ASCII to BIN take as JW20H 30H s data Only 0 to 9 Ato F ASCII characters are usabl
48. o gt j x N lt Xx Upper 2 digits Octal 20 21 22 23 24 25 26 27 30 31 32 33 34 35 86 37 0 SP 7 7 2 a S Y o 7 FP rl FL 7 Aa 2 i r ziv lialvinix v 3 ile eee Pe ele 4 SEXTPZEARSESEA23E 5 z 4 AVF ESATI 6 2 s 5 s a3 7 z v i 7ixXivYi 2 This table only shows JIS standard and undefined parts are omitted ASCII JIS code table Basic program Basic software JW 33SP BCC calculation Completion of BCC calculation Execution of BCC calculation Causes and treatments for errors Common RAM Communication connector Communication mode RS 422 2 wire system RS 422 4 wire system Connection example No of sending bytes No of receiving bytes No of transfer bytes Receiving header terminator Sending header terminator Control relay address Control relay area RS CS manual RS CS automatic XON XOFF manual XON XOFF automatic Data flow chart E Error and Treatment Error code ETX BCC 1 byte Example of applied program Example of system configuration EXP1 header EXP1 terminator EXP2 header EXP2 terminator Expansion module Z 3LP2ES IF Features and functions Frame ground H Handling prec
49. 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 1st 2nd 8th word word See ee ee word Calculated area of BCC check 4 ASCII Binary value XOR value 31 110001 uus woe 32 110010 o 110001 Result 1 88 110011 e 0000115 34 110100 eo 110000 35 110101 000100 36 110110 D 110001 37 110111 o 0001112 38 111000 eo 110000 ETX 03 000011 001000 001011 ey BCC code Number of transfer bytes and receiving bytes are values after converting transfer code at data receiv ing Therefore when the module receives after conversion as ASCII to BIN P 20 number of data bytes at an external device is 1024 bytes at max 25 4 Sending data Relations between sending header terminator number of sending bytes P 24 and 1 data frame of send ing data are as follows Unable sending Number of sending bytes uncertain error Variable data length 0000nex Absent Onex including setting EXP1 terminator or EXP2 terminator of Data from JW20H 30H Parameter to absent No of sending byte at 1uex 2uex Settings 1 to 512 bytes 0001 nex to 0200uex 1 data frame Add sending header set by control relay automatically Data from JW20H 30H No of sending byte
50. on connector esses 7 2 Connection examples iita aa i o iiai 8 Chapter 7 How to USC 2 0 cece cesseseseeeeneeeenseenseeeeseeesensaserseeeeesaeens 10 1 Settings of parameter area control relay area eese 11 2 Parameter setting ictor nt Ite ute react den Cei Prog Anc 13 IS Control relayiris EE 23 4 Sending data eire te E ce entered dex rers 26 5 Receiving data 5 iren rr inen monetae aaaea sasiak neri Dee aede ct 27 Chapter 8 Program Example sse 28 1 BASIC PrOGraM NEUE 28 2 Example of applied program seen 30 Chapter 9 Error and Treatment ess 33 1 Causes and treatments for errors seeseeeeeeenn 33 2 Indicatiori panel 5 5 cit t ei tri rr reti 35 Chapter 10 Specifications sss 36 Appendix eerte deer eter ERI Ie EEA ETR 37 Appendix 1 Parameter address and parameter name 37 Appendix 2 Address and name of control relay 42 Appendix 3 ASCII JIS code table sss 47 Alphabetical Index ness e edo edes 49 This module JW 21SU is a serial interface module for the programmable controller JW20H 30H and used to exchange data with the external device having RS 232C 422 interface such as host computer satellite monitor etc Features and functions 1 Either RS 232C or RS 422 is selectable as communication mode
51. ppendix 3 ASCII JIS code table 1 Binary hexadecimal How to use ASCII code table Capital A is located in 4 of upper bit and 4 of lower bit Thus ASCII code of A is A1uex in hexadecimal Upper bit 1 e a 4 5 Lower bit Upper bit 7 8 99 A Bj C D EJ F 0111 1000 1001 1010 1011 1100j1101 1110 1111 SP Belolt1laelasj a4 sle Bex Binary 0000 0001 00100011 0100 0101 o110 ooo Nu pE sP o P 0001 sOH DC1 ooto STX DC2 oo11 ETX DC3 amp o100 EOT DC4 0101lENQ NAK 0110 ACK SYN amp o111 BLE ETB 1000 BS CAN 1001 HT EM 1010 LF BUS 1011 VT JESC 4100 FF rs lt 401lcR es 410 so Rs gt 1111 si us 7 o J ojcjo o r o m m oc oj uomi Lower bit ojoj x jo jo 2jo mi valaja sju u SEHBBL i NiI xis iciaio m o r Rl l l l 5iNl ixisi ie lo laic m sfefl elu nea m o o gt e o o alafo gt a ee OjZ xz r zx c o This table only shows JIS standard and undefined parts are omitted 47 2 Octal How to use ASCII code table Capital A is located in 10 of upper 2 digits and 1 of lower 1 digit Thus ASCII code of A is 10tocr in octal m E Bg o u o z
52. received data Receiving header absent Receiving terminator Receiving header TE present Setting value Suex to Spex Invalid Including above conditions at Tex 2uex Parameter setting An interval after receipt of terminator to receipt of next terminator becomes 1 data frame m No of transfer a t A HEX 1 data frame present Receiving terminator An interval from header to T time out of t becomes 1 data absent frame Above case only with Trex 2uex parameter settings 1 to 512 bytes 001 Hex to No of transfer bytes No of receiving bytes 0200nex 1 data frame Receiving heade Data An interval from header to number of receiving bytes becomes 1 data frame Receiving header Receiving terminator Setting value header ti present Invalid No of transfer bytes Thex 22 1 data frame Guex Zugx present Receivin Receivin Iexminatd An interval from header to terminator becomes 1 data frame 3 places When t exceeds T it becomes receiving time out error and rejects received data When number of transfer bytes exceeds 512 it becomes overflow error and rejects received data 27 28 This chapter describes basic program of data sending and data receiving and its application examples Use this basic program for programming 1 Basic program 1 Dat
53. sible from power lines or high voltage lines so as not to run close parallel to them Standard operation flow is shown below Refer to this for use Example of system configuration JW20H 25 JW 21SU Support too External device 1 Turn OFF power supply to JW20H 30H Reference item Instllation P 5 2 Set termination resistance switch 3 Install the module on basic rack panel 4 Connect an external device with the module Wiring P 7 to 9 5 Set parameter area and control relay area by module No switch Setting of parameter area control relay area P 11 Y 6 Confirm mode switch 0 setting Mode switch E 7 Turn ON power supply to JW20H 30H MODE 8 I O registration using a support tool Setting at delivery 0 JW 13PG etc Be sure to set to 0 Setting to 1 to 9 i is prohibited 9 Set parameter Parameter setting P 13 to 22 I 10 Create program of JW20H 30H Control relay P 23 to 25 Program exampie P 28 to 32 11 Enter the JW20H 30H in operation condition using a support tool i 12 Start communication between the module and the external device 10 1 Settings of parameter area control relay area Set parameter area to designate communication mode transfer rate etc and contro relay area required for data sending receiving programs
54. th both of the D Available operation below conditions 1 Completion of transfer parameter from JW20H to of the module the module 2 Mode switch setting is 0 The module converts errors which occurred inside to error code and outputs to this address Error code becomes 00 amp ex normal operation at 10202 Error code following conditions Input See page 33 34 1 When Troy relay turns from OFF to ON 2 JW20H starts operation When more than one errors occurs the module outputs priority error code 23 Receiving Receiving header terminator Onex Absent Absent dex 7 EXP1 header EXP1 terminator Receiving data 2uex T EXP2 header EXP2 terminator S Do Receiving E E to header Suex Absent CR 8 t Ds terminator dex Absent LF F Data 2 Buex Absent CReLF o E Guex STX ETX n data End data Tex 2 STX etx BCC 1 byte Other than above Setting prohibited o203 Beet Becs eceiving eceiving Output header terminator Onex Absent Absent ex 1 EXP1 header EXP1 terminator 7 Receiving data D Sending 2uex EXP2 header EXP2 terminator ipw 4 is to header Suex Absent CR D terminator Anex Absent LF Data Suex Absent CR LF 8 GHex STX ETX Top data End data Tuex STX ETX BCC 1 byte Other than above Setting prohibited 0204 0000 Variable data Set number of byte of s
55. the module operation clears error codes of control relay and recovers from error condition Turn ON when JW20H requests to send receiving Rrea data to the module 0200 Ds Request to transfer While Razo relay turns from OFF to ON when the Output receiving data module has received data it turns ON Rack relay It also clears error codes Control RS control signal of RS 232C from JW20H RS this signal turns ON when requesting to send data to Ds Request to send an external device RS signal voltage is 10 V q Valid when parameter setting of control signal P 19 P 20 is RS CS manual and XON XOFF manual Trea Turn ON when there is no data in sending buffer of Di Request to transfer the module sending data Finov Turn ON when the module has receiving data and Ds Ready to transfer ready to transfer to JW20H receiving data Turn ON when the module has receiving data while Rack Rrea turns from OFF to ON D Ready to transfer The module transfer receiving data to JW20H by F 85 jo201 receiving data instruction while Rack turns from OFF to ON and Input turns OFF after completion of transfer cs Monitor CS control signal of RS 232C at JW20H Ds i and turns ON when an external device is ready to Ready sendin y 9 receive data CS signal voltage is 3 to 15 V The module turns ON this signal when it ready to Was operate and keeps ON condition wi
56. to parameters Set to parameters JW 50PG Below V4 0A Set to parameters Set to parameters rack 0 only Note 2 Set to file E Note 3 V5 0 or up Set to parameters Set to parameters Z 100LP2S Z 3LP2EM V5 1 or up Set to parameters Set to parameters rack 0 only Note 2 Set to file E Note 3 JW 50SP Below V4 0Al Set to parameters Set to parameters rack 0 only Note 2 Set to file E Note 3 V5 01 or up Set to parameters Set to parameters JW 100SP Set to parameters Set to parameters Note 1 When the JW 2PG is used with the JW30H set the JW30H s system memory 136 02 Note 2 If a support tool not designed to be used with the JW30H is used and if the JW20H specification mode is selected with the JW30H you have to enter a different number than 50 at JW30H system memory 260 Note3 If a support tool not designed to be used with the JW30H is used and the JW50H 70H 100H specification mode is selected with the JWSOH enter 50 at JWSOH system memory 260 13 14 1 Parameter setting procedure Check the installation for the JW 21SU and the settings of the module No switch and mode select switch before the parameter area set Before entering parameters make sure the JW 21SU is in the stop program mode These pages describe how to set parameters on an assumption that the hand held programmer JW 14PG programmer is being used Count the

Download Pdf Manuals

image

Related Search

Related Contents

  COUD JUSQU`A 12 EPAISSEURS    Note - Institut Montaigne  CYPEVAC III - Manual do Utilizador 2012  SVF8-01(J)    

Copyright © All rights reserved.
Failed to retrieve file