The text of a manual · part 7 of 18
I/O link master module JW-31LMH Instruction Manual: §7 I/O link usage
Pages 22 to 33 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 22
§7 I/O link usage
7-1 Setting at master module side
[1] I/O processing The master module is operated by “special I/O for JW50H/70H/100H” (hereafter called JW-I/O processing). The JW-1/O processing uses 2 data memory areas of I/O relay and data register.
(I/O relay) a For control output a 2 bytes ar, (Data register) [7] ae P Input data 64 bytes Output data >
(1) VOrelaynumber 0000000 At automatic 1/O registration mode, I/O relay number of HF | | . | | the JW-I/O processing is determined by the order of installation arrangement. (See the programming manual of JW50H/70H/100H)
The master module occupies 16 points (2 bytes)of VO = =~=~ - s | ity tt relays. Lj AVM] The illustrated example shows that the module is AWA LE installed into first slot of rack No. “0.”
D7 De Ds Da Ds D2 D1 Do
PC, Module Not used HALT | CHECK] 20000 (OUT PUT) Not used 30001 Sw2 >» M2 M3 S/H 1) CHECK (connected station check) relay ¢ This is output relay which becomes effective when the mode setting switch (SW2) is set to “Mode 3 setting.” e When the CHECK relay is “ON,” the JW-31LMH stops I/O link communication and repeats connection station check. Output of slave module is based on its switch setting. (See page 36 for connection check)
« When the CHECK relay is “ON,” the CHECK lamp of master module lights ON.
| oy CHECK reray , 00000
-15-
Page 23
(2)
2) HALT (communication stop relay) e When this relay is “ON,” the JW-31LMH stops I/O link communication, and cannot renew data with slave modules.
e When the HALT relay is “ON,” output condition of slave modules are in accordance with their switch settings. The HOLD lamp of each slave module lights as it becomes stopping communication.
¢ When the HALT relay is “ON,” the master module lights its HALT lamp.
HALT relay
00001
If you turn ON both the CHECK and HALT relays, the master module will display the slave station address which has an error on its display panel. (See page 28.)
Data register (area to enter output to slave stations and input from slave station)
¢ At automatic I/O registration mode of the PC, data registers are allocated from register 49000 for each 64 bytes per special I/O module.
« After allocated data registers, this master module uses max. 64 bytes and number of using bytes are designated by number of I/O link byte switch SW1.
¢ The below illustration shows an example of installing the module in first slot of the rack No. “0.” (When data register is used at relay area, see page 109.)
Data register address
49000 Status
1 byte
49001 | Slave module “01¢e)"data
49002 | Slave module “02(e)"data
49003 | Slave module “03@)"data
49004 | Slave module “04e)"data
“ a
49024 | Slave module “24:e)"data
49025 | Slave module “25,e)"data
49026 | Slave module “26a)"data
7 on
49036 | Slave module “36@)"data
49037 | Slave module “37,)"data
Setting of No. of I/O link bytes
Ex.: 31 bytes e When 31 ZW-82N module {each module occupies one byte) are connected to the slave module.
64 bytes unit
Not used
49077
1) Status
Swi 1 1 2 2 4 4 8 10 16 = 20 32 = 40
(Decimal) (Octal), - > ON
The status above is an area to indicate /O link communication. (For details, see page 27. )
-~16-
Page 24
2) Slave station data ¢ This is communication area with each slave module. ¢« When a slave module is input type, slave station data becomes input data of the PC. « When a slave module is output type, slave station data becomes output data of the PC. ¢ When a slave module is input and output type, this area is allocated input and output with 1 byte unit. ¢ Address of the slave station is set by slave module switch. ¢ In case of slave module using “n” bytes area, set the top address.
[Example for connection] Slave Slave Slave Slave : Ail station 01(8) station 02(8} + station 048) station 05) 6) |@ eae eee
ZW-82N ZW-162N ZW-82S ZW-324NH, ] [
Data register
49000 Status 49001 | Slave station 01) (input) < - _, - io, DSPEEEDS , [fe=Il po do[
49002 | Slave station 026) (input)
49003 | Slave station 026 (input) | |
49004 | Slave station 04(@) (output)}}, >- - - ------ >>
49005 | Slave station 05¢) (input)
49006 | Slave station 05() (input)
49007 | Slave station 05;8) (input)
49010 | Slave station 05¢) (input)
* It must be noted that address setting of LCD terminal Z-SM10 is of decimal notation.
-17-
Page 25
[2] Setting switch of master module
In order to actuate the master module I/O link communication, necessary to set switches.
(1) Setting number of I/O link bytes (SW1)
a. Set number of I/O link bytes using the number of I/O link bytes setting switch. Unit: 1 byte. b. Value to set should be total number of bytes of used slave module. Setting value = No. of bytes of module (1) + No. of bytes of module (2) +
Setting at delivery swi 21 (ON) 44 => 004 (OCT) 40 swe fp] (ON) M34 => SiH)
SW3 ON;
Oo 9 4 ems tetecaaees No. of bytes of module (n)
Ex.: An example in which two 8-point modules (each module occupies 1 byte), three 16-point modules (each module occupies 2 bytes), and two 32-point modules (each module occupies 4 bytes) are connected.
49000 49001 49002 49003 49004 49005 49006 49007 49010 49011 49012 49013 49014 49015 49016 49017 49020
Status
1 byte
Slave station address 01(8) (8-point module)
Slave station address 02(8) (8-point module)
Slave station address 03(8) (16-point module)
Slave station address 03(8) (16-point module)
Slave station address 058) (16-point module)
Slave station address 05(8) (16-point module}
Slave station address 07(8) (16-point module)
Slave station address 07(8) (16-point module}
Slave station address 11(8) (32-point module)
Slave station address 11(8) (82-point module)
Slave station address 15(8) (32-point module)
Slave station address 15(8) (82-point module}
2 bytes
2 bytes
2 bytes
Setting of No. of link bytes
4 bytes
4 bytes
16 bytes swi 1 1 2 2 4 4 8 10 16 20 32 40
(Decimal) (Octal), - - > ON
Total number of I/O link slave modules should be less than 32 sets.
When the setting is larger than the total number of used bytes, it becomes communication error. (See page 27 for details.)
Or, if this amount is smaller than the total number of bytes used by the slave modules, the slave modules after the setting number of the master module fall in error, and the “RUN” lamp of the slave modules flickers., ~18-
Page 26
swe
(2) Setting mode/ transfer speed (SW2) Mi 1 H 13 ” . M2 Using the SW 2 switches “M1, M2, M3, and TEST,” select the operation mode M3 that will be executed when a communication error occurs between the slave TEST modules. Using the “S/H” parameter of SW2, select a data transfer speed. on Mode 4 When power to the master module turns “ON,” the master module initially checks its At normal connected stations one time. The master module continues to check its connected stations once per 100 communications with all slave modules. M1 If no response slave module exists, the JW-31LMH outputs the abnormal signal to the M2 9 status section and the indication panei. (It turns OFF after recovering to normal M3 At error condition.) communication The master module repeats connected station check until communication becomes normal. At abnormal condition, the modute does not execute I/O Link communication and stay holding data. Mode 2 When power to the master module turns “ON,” the master module initially checks its At normal connected stations one time. The master module checks its connected stations once per 100 communications with all slave modules. M1 Even if no response slave module exists, the master module does not indicate the M2 abnormal condition. M3 The master module outputs the abnormal slave module No. on the status section for At error only one PC cycle. communication The master module checks its connected stations once per 100 communications with all slave modules, and check no response station’s recovery. The master module executes communication regarding no response slave module as disconnected station. Mode 3 When power to the master module turns “ON,” the master module initially checks its connected stations one time. At normal When the CHECK relay is “ON,” the master module checks its connected stations and display “00” at normal communication. When you switch ON SW4, the master module check connected stations one time and display “00” at normal communication. Mo Even if no response slave module exists, the master module does not indicate error M3 condition. The master module outputs the error slave module No. on the status section for only At error one PC cycle. communication The master module checks its connected stations when the CHECK relay is “ON” or SW4 is “ON” and confirms recovery of no response station. The master module executes communication regarding no response slave module as disconnected station. In mode 3, the MODE 3 lamp at the master module lights. See “S/H” of SW2 OFF | S/H |
When multiple stations have errors, the master module outputs smaller address no. slave module to the status section and the indicator lamps. (See page 27 and 29)
See the next page for connected station check. (See page 36 of this manual for connected station check at error communication.)
Switch ON only one of three model setting switches. Multiple setting of these switches is treated as mode 3 by the module. When ail of M1, M2, and M3 are set to OFF, setting error occurs. (Error : See page 31 to 32), ~19-
Page 27
(Reference)
49000 49001 49002 49003 49004 49005 49006 49007 49010
Communication to connected stations check
After the power being ON, the master module executes communication check of connected stations for set number I/O bytes slave stations before processing of the PC. With this communication, the master module recognizes whether the connected slave stations are input modules or output modules.
Slave station Slave station Slave station Slave station 01¢) (8 points) 02() (8 points) 03ia (16 points)05i@) (32 points)
Status Input | jOutput} | Input | {Output | Slave station 01j)input ; - -~ - ------ - J | I | Slave station 02(e) output | ---- - ----------- J ! |
Slave station 03() input
Slave station 03;g) input
Slave station 05,8) output
T I | | | | oe | I
|
I
I
I
Slave station 05,8) output
Slave station 05;e) output
Slave station 05;) output
In mode 1 or mode 2, the module repeats communication for connected station check every 100 communication cycles. (See page 36 for this time chart.)
As for calculation of this communication time with I/O link, see page 33.
(3) Termination resistance switch (SW3)
Switch ON this switch when the I/O link master module is an termination station of the line. When it is an intermediate station, switch OFF. SW3
ON OFF
(Reference)
o+_tol to O3
Switch ON termination resistance | switch these stations only.
Why is termination resistance required?
1. When the receiving side has high impedance, it may be influenced with AC induction voltage. The termination resistance decreases this AC induction voltage.
2. Communication of I/O link using high frequency signals of 172.8 k bits/sec. or 345.6 k bits/s. If the termination resistance is not provided, signals generate reflection waves at signal ends and these waves collide with sending signals. The termination resistance prevent generating these reflection waves.
(4) CHECK (connection check) switch (SW4) SW4
This is a switch to check connected station at mode 3. With switching ON, the module checks connected stations © one time. (See page 19 for mode 3.)
PUSH ON, 20-
Page 28
7-2 I/O link module setting procedure
Set I/O link module functions using the switches. Follow the below flow chart for setting. (Slave module indicates in case of I/O link slave module. See page 42 to 106.)
Turn “OFF” master module PC power. Turn “OFF” slave module power.
Vv
Set the switch of slave module (\/O link output module) MODE Set these switches for all of the slave module. Termination resistance.....OFF| HI] | ON Function setting............. VO link} HI] | Mnet Output hold....................Hold | HB] | Reset + Prohibit output.............. Prohibit] [| | Allowed
Set the termination resistance Slave station
Termination resistance switch Switch “ON” when the slave module is an termination station of link circuit.
When it is an intermediate station, switch “OFF.” (See 14 page) ON Insert a termination resistance.
OFF | Do not insert a termination resistance.
Ww
Set the function Slave station
Function setting switch Set to “OFF” when it is used as slave module.
ON M net function [A communication system equivalent to the “standard interface between modules”
OFF 1/O link function v
Set the output hold switch Slave station (output module)
Set the output hold switch (for I/O link, output module) This is used to select between “hold” and “all points OFF” when I/O link communication is interrupted. Hold OFF | Set output condition to “hold.”
Reset | ON Set output condition fo “all points OFF.”
Vv To next page, 21-
Page 29
t
Set the output prohibition switch
Output prohibition switch This is a switch for communication test of the I/O link output module. When this switch is actuated, I/O link communication is available, but all the output become “all points OFF.”
Slave station (output module)
Allowed ON
“ON” “OFF” operation of normal output.
OFF
Prohibited
Output becomes “All points OFF.”
Vv
Set the slave station address switch
Slave station address setting switch Set using address of slave module on the PC data memory. Allocate head address of each in accordance with occupied amount (byte unit) of bytes of each slave module. Set with octal notation. Set total of 6 switches’ (1 switch of slave module)
to 40
(8) (8)
Slave station address 01()
Slave station address 02)
Slave station address 03¢)
Slave station address 04,4)
40
Slave station address 05,)
20)
Slave station address 06.)
10%)
Slave station address 07()
4@ 2(a)
Slave station address 10.)
1@
Slave station address 11
J /SMWAAR |:
Slave station address 12)
Slave station address 13,8)
Slave station address 14\)
Slave station address 15;)
Slave station address 16,
Slave station address 17(s)
Vv To next page, 22o-
Slave station
) weight. (See setting
¢ After completion of the communication test, be sure to set the switch to “allowed.”
ABooAe, 40(8), 20(8), 10(8), 4(8) ~2(8), 1(8)
ADDRESS
Slave station address 20,6)
Slave station address 21s)
Slave station address 22(e)
Slave station address 23,)
Slave station address 24)
Slave station address 25¢@)
Slave station address 26¢@)
Slave station address 27¢)
Slave station address 30)
Slave station address 314)
Slave station address 32(6)
Siave station address 33()
Ex. (35)
Slave station address 344)
Slave station address 35,6)
Slave station address 36i)
Slave station address 37()
40 (a) 20i8) 10,2) 49) 20) a)
* Use “Slave station address allocation table” (page 115) for slave station address settings.
it Etat
Page 30
‘
Setting of master module switches
To remove the setting section cover, put your finger on its i upper end and pull back while pressing down. Fl * Do not damage the cover as it should be put on again after oO setting switches. Do not loose the cover. Setting at delivery Swi 44 ] (ON) 4], 10
S10 BEE)
Vv
Set amount of I/O link bytes Master station ; ' Amount of I/O link bytes setting (SW1) ° ; Set amount of bytes of slave module. 8 10 This number should be total amount of occupied bytes of 16 20 slave modules. 30 40
Setting value = No. of bytes of slave module (1) + (Decimal) (Octal), > ON + No. of bytes of slave module (2) ..... + No. of bytes of slave module (n) Number of I/O link bytes is total amount of each switch setting.
Ex.: Setting of number of I/O link bytes is 25 (31/8). Setting example For switch setting, see the illustration right. 1 Set in octal notation as shown below. 2 4 10 [ Calculation by octal | 31 (8) = 20(8) + 10(8) + 1(8) ‘0
Vv To next page
-23-
Page 31
t
Set the operation mode
Mode setting switch (SW2) Set the master module operation at communication error of I/O link communication.
Master station
ON
Ssw2 Mi M2 M3 S/H, )*
When power to the master module turns “ON,” the master module initially checks At normal its connected stations one time. The master module continues to check its connected stations once per 100 communications with all slave modules. M1 If no response slave module exists, the JW-31LMH outputs the abnormal signal to M2 the status section and the indicator panel. (It turns OFF after recovering normal M3 At error condition.) communication The master module repeats connected station check until communication becomes nonnal. At abnormal condition, the module does not execute I/O link communication and stay holding data. Mode 2 When power to the master module turns “ON,” the master module initially checks At normal its connected stations one time. The master module checks its connected stations once per 100 communications with all slave modules. M1 Even if no response slave module exists, ihe master module does not indicate the M2 abnormal condition. M3 The master module outputs the abnormal slave module No. on the status section At error for only one PC cycle. communication The master module checks its connected stations once per 100 communications with all slave modules, and check no response station's recovery. The master module executes communication regarding no response slave module as disconnected station. Mode 3 When power to the master module turns "ON," the master module initially checks its connected stations one time. At normal When the CHECK relay is “ON,” the master module checks its connected stations and displays “OO" at normal communication. When you switch ON SW4, the master module checks connected stations one time and displays “OO" at normal communication. M1 Even if no response slave module exists, the master module does not indicate M2 error condition. N3 The master module outputs the error slave module No. on the status section for At error only one PC cycte. communication The master module checks its connected stations when the CHECK relay is “ON” or SW4 is “ON” and confirms recovery of no response station. The master module executes communication regarding no response slave module as disconnecied station. In mode 3, the MODE 3 lamp at the master module lights. See “S/H” of SW2 OFF | S/H _ - | | ON L SH | |
When multiple stations have errors, the master module outputs smaller address no. slave module to the status section and the indicator lamps. (See page 28 and 30)
See the next page for connected station check. (See page 36 of this manual for connected station check at error communication.)
Switch ON only one of three model setting switches. Multiple setting of these switches is treated as mode 3 by the module. When all of M1, M2 and M3 are set to OFF, setting error occurs. (See page 31 and 32)
Vv To next page, -24-
Page 32
| SW3
Set the termination resistance Master station ON OFF
Termination resistance switch (SW3) Switch ON when the master module is an termination station of link circuit. When it is an intermediate station, switch “OFF.”
ON Insert termination resistance.
OFF | Do not insert termination resistance.
W
Install the setting section cover Master station
Again check whether there is no mis-setting of switches and install the setting section cover.
Vv
Cornmunication test
Put ON PC power of the master module and slave module power. Set the master module PC to operation mode, and check that there is no abnormality with monitoring status. (Set the master module to mode 1 for operation.)
C End »)
With above, setting of master module and slave modules are completed.
After communication test, be sure to switch ON (allowed) the output prohibition switch of each slave module.
~25-
Page 33
7-3 Cautions concerning I/O link setting
1. More than 32 sets of I/O link slave module are not connectable.
2. Becareful when setting range of number of I/O link bytes. Setting “0” causes an error. Setting more than number of slave station addresses causes the JW-31LMH an error in mode 1, due to inability to confirm a connecting station. (See page 16)
3. See page 16 for slave station address and the address allocated on the PC data register. Setting “00” for address of a slave module causes an error.
4. Avoid double setting of slave station address or following errors occur. Error code and display may not be output.
Double address setting of the input module. No designation of input data.
Double address setting of the input and No designation of input data or condition output module. of the output module.
Double address seiting of the output module. Output of the same data.
5. Turn ON the termination resistance switch only for both termination stations in the link circuit. (See page 14)
6. Set dip switches of the master module and slave modules when the PC power is “OFF.” When the PC power is “ON,” changeover of switches are not accepted internally, and may cause an error.
7. The master module can only use up to 47 sheets with combination of other special I/O as it is one of JW special I/O module. Be sure not to double set data register area with register area for data link and remote I/O., 26 -