The text of a manual · part 10 of 18
I/O link master module JW-31LMH Instruction Manual: §10 Program examples
Pages 47 to 49 of 123, from I/O link master module JW-31LMH Instruction Manual
The original document is the PDF (3.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Sharp JW-31LMH
Page 47
§10 Program examples iy
Program exampies in the following system are shown Contro! module below. Power supply \ [1] System configuration module \ \ O@@O@ BABE OUDUUU @ Master module (JW-31LMH) ee] te |e] fe
In this example, 2 sets of 8-point input slave modules, 1 set of 16-point input slave modules, and 1 set of 32-point output slave modules are used.
Therefore, the total number of link bytes should be set as 8 bytes.
24VDC
@) The 32-point DC input module (JW-32N) power supply Installs operation switches and sends a signal to the I/O link output module.
Operation switch
@ The 32-point DC output module (JW-32S) 32 pcs. Displays input signal from an I/O link © input module (ZW-82N). (Input module) (Output module) @ The 32-point DC output module (JW-32S) 2 sets of ZW-82N 1 set of ZW-322SH Used for monitoring status of I/O fink 1 set of ZW-161N communication. ©) Slave module (ZW-82N, ZW-161N, ZW-322SH) [2] Switch setting of modules Switch setting of master module No. of I/O link Mode Termination Master Slave bytes switch transfer speed resistance switch | Station station Swi Swe Sw3 01(8) 02(8) 03(8) 05:8) 3 . oN pif] te 2 M2 OFF | fd 4 M3 10 S/H | 90 ZW-82N ZW-322SH 40 ZW-161N (ocT) <=> ON => ON Switch setting of slave module Slave station No. 01(8) 02(8) 03:8) 05,8) m_) - 40 ae 4020104 2 1 4020104 2 1 . m-20 | =_1- rrr Pi dtd Switch g-10 | go-to . setting m@1-4 w- - 4 g_l-2 [_m-2 ( Switch ON {__B-1 m_j - i terminal resistance)
-40-
Page 48
[3] Data memory allocation 1 0 7 HALT | CHECK f 0000 (JW-31LMH) 30001 t 410002 | Sending datato/O, | 40003 | link output module DC input module 40004| (switch input) (JW-32N) 0 10005 | 10006 | __ | 30007 For monitor receiving - datafromV/Olink =, DC output module = 10010] _input module | (JW-32S) 10011 i 10012 Monitor status section (Current value) | 310013 Monitor status section (Memory) DC output module 30014 (JW-32S) 10015 | Data register 49000| D7, De status information |_ 7 49001 | Slave station address 01(8)| | Zw-82N ) j 2 sets, input j 49002| Slave station address 02()| | ( put) we link su ) } 49003| Slave station address 03()| | ZwW-161N Input module 49004| Slave station address 03()| | (1 set, input) _ ) 1/0 link data 49005| Slave station address 05¢) ) (JW-31LMH) 49006 | Slave station address 05¢)| | ZW-322SH /O tink 49007| Slave station address 05¢)| | (1 Set, output) { output module, - - 49010| Slave station address 05,8) |_| J 49017 | | ao Not used a 49077 v Timer 000 For error release detection
¢ For details of status information, see page 27 of this manual.
e When you want to set data register in relay area, see this manual from page 109.
-~A{
Page 49
[4] PC program
Set PC scan time to 8.3 ms (at zero cross synchronous 60 Hz) and execute communi-
Note 4 Note 2 Note 3
Note 4
,Nonnaily OFF (special relay) Zero cross cation within a PC scan time. 7366 O switch | Note 1 || Note 2 || Note 3 | 07367 F-47 ONLS . : oe Transfers the information of I/O link input Normally module for monitoring. ye OFF F-70 | 004 |49001 |30006 “07366 FILE Transfers switches input to the allocated slave station address No. of the I/O link F-70 output module. FILE | 004 | 70002 |49005 The status information is transferred for E00 monitoring when an error occurs.
1 x pep] 49000 | 20012 When an error occurs, the JW-31LMH stores the status information in mode 2 to enable monitoring.
F-48 ONLR Status pO F-00 30012 | 30013 was ta 00126 XFER When no error exists in 100 communication cycles, 5 the JW-31LMH deletes monitor of status (error ‘a contents). 00127 . Required scan time for monitoring x 100 Time = : , , +2 =8.3+2 Status Status faaroo>\ 100 (timer is 100 ms unit) es yp 2, f TMROOO 00126 00127 AC, . 00126 Note 4 When there is no error, the TMR 000 will time out and delete error information. TMROOCO F-08 pf | oct | 200 {20013
See page 39 for calculating the minimum scan time. See page 33 for the required transfer time.
When you use JW-2PU as a DC input power supply for PC power supply module, switch ON zero cross switch (07367) and set scan time (09,,,) in PC system memory #0226.
Set the timer with an integral number. In order to get timer accuracy, two correction values of allowance -1 plus digit are provided as follows: timer allowance = digit setting ve
~42