The text of a manual · part 11 of 27
SHARP Programmable Controller New Satellite W series: Network module JW-20CM, Remote I/O slave module JW-20RS User's Manual: Chapter 8: Remote I/O, pages 69 to 78
Pages 69 to 78 of 230, from SHARP Programmable Controller New Satellite W series: Network module JW-20CM, Remote I/O slave module JW-20RS User's Manual
The original document is the PDF (2.5 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.
Filed in the catalog under the Sharp ZW-1PU, Sharp ZW-32IO2 and Sharp ZW-32S2T
Page 69
In brackets: See page Operation procedure Turn ON the power switch on the master station PC Connnect support tools Stop PC operation Stop operation of the remote I/Os (parameter address 003777(8) = 00(H)) Set the operation mode of the remote I/Os Set the number of slave stations connected When using fixed allocation mode 1
When using manual allocation mode 2
Set the remote I/O top address [8·35]
3
Set the number of slave station I/O points
4
Set the blanks between stations
[8·38] [8·39]
Set the top address of remote I/O slave station 01 [8·35] 5 Set the top address of remote I/O slave station 02 to 77 [8·40] 6 Set the number of I/O bytes for each slave station [8·42]
(If the master station PC is a JW model) When the master station PC is a ZW model
Set the I/O model type for each slave station
[8·43]
Set the area for special I/O data registers
[8·44]
Set the top flag address
[8·36]
Write to EEPROM, start operation (parameter address 00377(8) = 81(H)) PC operation
[8·37] [8·37]
End Steps 1 to 8 correspond to the steps on pages 8·38 to 8·44.
8·31
8
Page 70
Parameter setting range <Fixed allocation> · When fixed allocation is used, set parameter within the range shown below: コ0000
Number of slave stations (1 ≦ n ≦ 32 or 63) Remote I/O top address Number of slave station I/O points (fixed to 64 points or 128 points) B1 to Bn : Blank between stations 1 to n : A: N:
A 1
N B1
2
N B2
• • •
N
コ1577
(Setting of JW model special I/O module) 0 to 128 bytes in total per remote slave station 0 to 512 bytes in total of all stations
Data register Number of modules
8
Up to 8 modules per remote slave station Up to 32 modules in total of all stations
<Manual allocation> · When the manual allocation is used, set parameter within the range shown below: 1 to n : Number of slave stations (1 ≦ n ≦ 63) A1 to An : Remote I/O top address N1 to Nn : Number of slave station I/O bytes (0 ≦ Nn ≦ 128) N1 + N2 + · · · + Nn ≦ 512
コ0000
A1 1
N
2
N
A2 • •
A1 ≦ A2 ≦ · · · ≦ An
•
An Nn
コ1577
(Setting of JW model special I/O module) Data register Number of modules
0 to 128 bytes in total per remote slave station 0 to 512 bytes in total of all stations Up to 8 modules per remote slave station Up to 32 modules in total of all stations
8·32
Page 71
Turn “ON” the power of master module
Connect support tools · Connect a support tool with the JW-20CM master module and prepare the setting parameter. <Usable support tools> JW-13PG/12PG JW-50SP JW-50PG, Z-100LP2S · For operation of each support tool, see the instruction manual attached. The following describes an example of JW-13PG’s key operation. Stop PC operation · Turn to program mode (stop PC operation). Setting of parameters is only available when the PC is in program mode. (Operation example of JW-13PG) Stop PC operation Select parameter setting mode. Select initial mode
(
)
Parameter setting
Stop operation of remote I/O
[HEX (hexadecimal), byte]
· Setting of the parameter is only available when the operation of the JW-20CM is stopped. · Write “00(H)” to parameter address 007777(8) and stop operation of the JW-20CM. (Operation example of JW-13PG) Screen display of JW-13PG Display the contents of parameter address 003777 by hexadecimal.
Reference •
( ) Write 00(H).
03775 03776 I PARAM. >03777
HEX HEX
00 00
HEX
00
Function of JW-13PG key: Changeover unit of figures
→HEX (hexadecimal) → OCT (octal) → DCM (decimal) →Bit pattern • key: Byte display ←→ Changeover word display
To the next page
8·33
8
Page 72
From the previous page
Set remote I/O operation mode
[OCT (octal, word)]
· Set operation method of the remote I/O into parameter address 000000(8). Operation method Set value(8) 001 002 004 005 006 011 012 014 015 016
8
Operation when a slave station error occurs • Remote I/O operation (communication) stops. • The PC continues operation. (Mode 1) • Only normal slave stations will continue operation (communication). • The PC continues operation. (Mode 2) • Remote I/O operation (communication) stops. • The PC also stops operation. (Mode 0) • Remote I/O operation (communication) stops. • The PC continues operation. (Mode 1) • Only normal slave stations will continue operation (communication). • The PC continues operation. (Mode 2) • Remote I/O operation (communication) stops. • The PC continues operation. (Mode 1) • Only normal slave stations will continue operation (communication). • The PC continues operation. (Mode 2) • Remote I/O operation (communication) stops. • The PC also stops operation. (Mode 0) • Remote I/O operation (communication) stops. • The PC continues operation. (Mode 1) • Only normal slave stations will continue operation (communication). • The PC continues operation. (Mode 2)
Communication method
Allocation of I/O address
Asynchronous
Fixed allocation Synchronous
Asynchronous
Manual allocation Synchronous
· Concerning the contents of "synchronous" and "asynchronous" communications, see page 8·4 "Communication timing." Set "slave station operation at error: mode 0" and "communication method: synchronous" and "address allocation: manual" Screen display of JW-13PG
(
Display the contents of 000000(8)
) (
After converting to octal notation, write it at 014(8).
17776 17777 I PARAM. >00000
)
To the next page
8·34
OCT OCT
000 000
OCT
014
Page 73
From the previous page
Set number of connected slave stations
[DCM (decimal), byte]
· Set number of connected remote I/O slave stations into parameter address 000001(8). · Maximum number of connectable slave stations varies with setting value of I/O points per slave station.
Number of I/O points
Number of connected modules
64 points/station
0 to 63(D)
128 points/station
0 to 32(D)
Initial value: 00(H)
(When to set 10(D) using the JW-13PG) Write setting value 10(D) in address 000001(8) after converted into decimal notation. Screen display of JW-13PG 17777 00000 I PARAM. >00001
DCM DCM
000 012
DCM
010
"Only when using fixed allocation mode" ①
Set remote I/O top address
[OCT (octal, word)]
"Only when using manual allocation mode" ②
Set remote I/O top address of slave station 01
[OCT (octal), word]
8
· Set remote I/O top address to parameter address 000002 and 000003(8) with file address (see page 8·32 and 13·20). (slave station 01 when free allocation is selected.). 000002(8)
Lower bits
000003(8)
Upper bits
Initial value: 00(H)
(In case of setting file address 000200(コ0200) using the JW-13PG) Screen display of JW-13PG
( Word display )
After converting into octal notation, write in file address 000200(8).
17776 00000 I PARAM. >00002
0 0
000000 005014
0
000200
· Set step ③ to ⑧ starting from page 8·38 with cases of fixed/manual allocation and ZW or JW series PC.
To the next page · Steps ① to ⑧ above correspond to each step in operation procedures in page 8·31.
8·35
Page 74
From the previous page
OCT (octal), word MET (hexadecimal), byte
Set top address of flag area
· Set the top address of the flag area (8 bytes) in order to monitor the communication condition and PC operation condition on the parameter address 003764 to 003767(8). · Flag area uses 8 bytes regardless number of connecting stations. 003764(8)
Lower
003765(8) 003766(8)
Upper File number
Initial value: 00(H) for all addresses
003767(8) D7 Output flag : ON Do not output flag : OFF
Remarks · The PC's input/output relays, auxiliary relays, registers etc. are all allocated individual byte addresses for each item. However, the JW-20CM can assign these addresses with file addressees allocated throughout the memory.
コ00677 コ00700 コ00777 コ01000
General purpose relay 001577 001600 001777 002000
JW model PCs
Latch relay
09777 19000
004777 005000 ZW model PCs
8
000677 000700 000777 001000
Auxiliary relay
Register コ00377 コ00400
Register 005777 006000
19777 29000
015777
99777
JW model PCs
I/O relay 000377 000400
ZW model PCs
Byte address 09000
File address 004000
Byte address コ0000
File address
コ01577 TMR/CNT time limited contact b0000
TMR/CNT/MD current value
003777 b17777
· The usable file numbers will vary with the memory module that is installed on the PC. Name of memory module
Usable file numbers
ZW-1MA, JW-1MAH
0 or 1※
ZW-2MA, JW-2MAH
0 or 1
ZW-3MA, JW-3MAH
0, 1, 2
ZW-4MA, JW-4MAH
0, 1, 2, 3, 4, 5, 6, 7
※ If file number is 1, file address shall be within 000000 to 037777(8). (See page 13·20 and 21 for other cases.)
(In case of setting file address 000700 (コ0700) using the JW-13PG)
Write in file address 003764(8).
( Word display )
Write in file address 000700(8).
Screen display of JW-13PG (Byte display)
After converting into byte display to 003766 (8), write in file number 0 in hexadecimal notation.
Write (80(H)) to output to a flag in 003767(8)
To the next page
8·36
03765 03766 I PARAM. >03767
HEX HEX
01 00
HEX
80
Page 75
From the previous page Writing to the EEPROM of the JW-20CM, start operation
[HEX (hexadecimal), byte]
· Write “81(H)” into parameter address 003777(8) and write the set parameter contents into the EEPROM of the JW-20CM. Then start the remote I/O operate. · After starting operation, the setting value changes to “01(H).” Setting value (H)
Contents
0 0(H)
Stop operation of the remote I/O (initial value)
01
· Calculate BCC of parameter addresses 000000 to 003775(8). When normal, the remote I/O will start operation. When abnormal, the module will output error code BE(H).
8 0(H)
① Check the parameter contents When normal, the module calculates BCC and writes the check sum value into address 003776(8). When abnormal, it outputs a BF(H) error code. ② Changes the value to 00(H) (stops the operation of the remote I/O), and writes it into the EEPROM. If a write error to the EEPROM occurs, it outputs a 30(H) error code and keeps the value set to 80(H). Writing to the EEPROM of the JW-20CM, start operation
8 1(H)
① Check the parameter contents When normal, the module calculates BCC and writes the check sum value into address 003776(8). When abnormal, it outputs a BF(H) error code. ② Changes the value to 01(H) (starts the operation of the remote I/O), and writes it into the EEPROM. If a write error to the EEPROM occurs, it outputs a 30(H) error code and keeps the value set to 81(H). Writing to the EEPROM of the JW-20CM, start operation
08
8
Initialize setting values of parameter addresses 000000 to 003777(8)
(Operation example of JW-13PG)
Display the contents of address 003777(8)
Screen display of JW-13PG
Write 81(H)
03775 03776 I PARAM. >03777
PC operation Turning a master station PC to monitor or change mode (PC operation). (Operation example of JW-13PG) Monitor mode Change mode
8·37
HEX HEX
00 00
HEX
01
Page 76
"Only when using fixed allocation" ③
Enter the number of slave station I/O points
[HEX (hexadecimal), bytes]
(Applied to item ③ on pages 8·31 and 8·35) · Store the number of I/O points per slave station at parameter address 000200(8). · The number of slave stations that can be connected varies with the setting for the number of I/O points per slave station. Set value
Number of I/O points
Number of modules that can be connected.
00(H)
64 points/station
0 to 63(D)
01(H)
128 points/station
0 to 32(D)
Initial value: 00(H)
· Allocates the number of I/O points per slave station as 64 points per unit or 128 points per unit, starting from the top address set by the procedure on the previous page. Ex.: When a remote I/O's top address is コ0200 and the number of slave station I/O points is 64. コ0200 (64 points)
Slave station 01
(64 points)
Slave station 02
(64 points)
Slave station 03
(64 points)
Slave station 04
← Remote I/O top address
コ0210 コ0220 コ0230 コ0240
(When set for 64 points per station using the JW-13PG) Screen display of JW-13PG
8
Display the contents of address 000200(8)
00176 00177 I PARAM. >00200
Write 00(H)
8·38
HEX HEX
00 00
HEX
00
Page 77
"Only when using fixed allocation" ④
Set blanks between stations
[DCM (decimal), bytes]
(Applied to item ④ on pages 8·31 and 8·35) · Enter the number of blank bytes for each slave station at parameter addresses 000301 to 000376(8). · Enter only the number of blank stations needed using 0 to 255(D) bytes. Address(8) Stations(8)
Address(8) Stations(8)
Address(8) Stations(8)
Address(8) Stations(8)
-
-
000320
20 to 21
000340
40 to 41
000360
60 to 61
000301
1 to 2
000321
21 to 22
000341
41 to 42
000361
61 to 62
000302
2 to 3
000322
22 to 23
000342
42 to 43
000362
62 to 63
000303
3 to 4
000323
23 to 24
000343
43 to 44
000363
63 to 64
000304
4 to 5
000324
24 to 25
000344
44 to 45
000364
64 to 65
000305
5 to 6
000325
25 to 26
000345
45 to 46
000365
65 to 66
000306
6 to 7
000326
26 to 27
000346
46 to 47
000366
66 to 67
000307
7 to 10
000327
27 to 30
000347
47 to 50
000367
67 to 70
000310
10 to 11
000330
30 to 31
000350
50 to 51
000370
70 to 71
000311
11 to 12
000331
31 to 32
000351
51 to 52
000371
71 to 72
000312
12 to 13
000332
32 to 33
000352
52 to 53
000372
72 to 73
000313
13 to 14
000333
33 to 34
000353
53 to 54
000373
73 to 74
000314
14 to 15
000334
34 to 35
000354
54 to 55
000374
74 to 75
000315
15 to 16
000335
35 to 36
000355
55 to 56
000375
75 to 76
000316
16 to 17
000336
36 to 37
000356
56 to 57
000376
76 to 77
000317
17 to 20
000337
37 to 40
000357
57 to 60
-
-
Initial value: 00(H) in all addresses Ex.: In case of setting as blanks in slave stations 2 to 3 to prevent double use of the 8 bytes in the special relay area (コ0730 to コ0737) コ0710 Slave station 01 Slave station 02 Blank Slave station 03
← Remote I/O top address
コ0720 コ0730
Special relay area
コ0740 コ0750
Screen display of JW-13PG Display the contents of address 000302(8)
After converting to decimal notation, write it at 8(D).
8·39
00300 00301 I PARAM. >00302
DCM DCM
000 000
DCM
008
8
Page 78
"Only when using manual allocation" ⑤
Enter the I/O top addresses of slave stations 02 to 77
[OCT (octal), words]
(Applied to item ⑤ on pages 8·31 and 8·35) · Enter the remote I/O top address for each slave station at parameter addresses 000004 to 000177(8), using file addresses. · "Single address" or "continuous address" can be selected by setting the upper bit (D7) in the 2nd byte. 000004(8)
Lower bit
000005(8)
Upper bit
→
8
ON : Single address (enter only the slave station) OFF : Continuous address (continue from the previous slave station. It is not possible to change the address value.)
(8)
Slave station number(8)
-
-
000004 000005 000006 000007 000010 000011 000012 000013 000014 000015 000016 000017 000020 000021 000022 000023 000024 000025 000026 000027 000030 000031 000032 000033 000034 000035 000036 000037
-
Address
Initial value: 00(H) in all addresses
02 03 04 05 06 07 10 11 12 13 14 15 16 17
Address (8)
000040 000041 000042 000043 000044 000045 000046 000047 000050 000051 000052 000053 000054 000055 000056 000057 000060 000061 000062 000063 000064 000065 000066 000067 000070 000071 000072 000073 000074 000075 000076 000077
Slave station number(8)
20 21 22 23 24 25 26 27 30 31 32 33 34 35 36 37
Address (8)
Slave station number(8)
000100 000101 000102 000103 000104 000105 000106 000107 000110 000111 000112 000113 000114 000115 000116 000117 000120 000121 000122 000123 000124 000125 000126 000127 000130 000131 000132 000133 000134 000135 000136 000137
40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57
Address (8)
000140 000141 000142 000143 000144 000145 000146 000147 000150 000151 000152 000153 000154 000155 000156 000157 000160 000161 000162 000163 000164 000165 000166 000167 000170 000171 000172 000173 000174 000175 000176 000177
Slave station number(8)
60 61 62 63 64 65 66 67 70 71 72 73 74 75 76 77
Ex. Enter a single file address 001000 (コ100) at the remote I/O top address on slave station 02 using the JW-13PG. Screen display of JW-13PG Turn ON ( the D bit ) 7
00000 00002 I PARAM. >00004
File address
8·40
0 0
005014 000200
0
101000