The text of a manual · part 17 of 27
SHARP Programmable Controller New Satellite W series: Network module JW-20CM, Remote I/O slave module JW-20RS User's Manual: Chapter 9: Data Link, pages 129 to 138
Pages 129 to 138 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 129
From the previous page
Enter communication error detection interval
[DCM (decimal), byte]
· If the JW-20CM does not receive data from a station within the specified time (initial value: 250 ms when fewer than 32 stations are connected, 450 ms when more than 33 stations are connected), it turns OFF the communication monitor flag corresponding to this station. The specified time can be changed by entering a different value at parameter address 007771(8) (communication error detection time). Use the same value for all the stations. Normally, this value does not need to be changed. Use the modules with the initial value (00(H)). Set value(D)
Communication error detection time (ms)
000
Initial value: 250 ms for fewer than 32 stations, 450 ms for more than 33 stations.
001
100
002
200
003
300
004
400
005
500
006
600
⁝
⁝
010
1000
⁝
⁝
255
2500
* Detection time precision: –100 ms to +0 ms
Ex.: If the PC scan time is extremely long (exceeds the time specified above), the communication monitor flag will turn OFF, even though there is no communication error. In this case, change the value at parameter address 007771(8) to a larger number. To the next page
9·31
9
Page 130
From the previous page Writing to the EEPROM of the JW-20CM, start operation [HEX (hexadecimal), byte] · Write “81(H)” into parameter address 007777(8) and write the set parameter contents into the EEPROM of the JW-20CM. Then start the JW-20CM. · After starting operation, the setting value changes to “01(H).” Setting value (H)
Contents
00
Stop operation of the JW-20CM
01
Start operation of the JW-20CM
80
Writing to the EEPROM of the JW-20CM, stop operation
81
Writing to the EEPROM of the JW-20CM, start operation
08
Initialize parameters
Screen display of JW-13PG Display the contents of address 007777(8)
07775 07776 I PARAM. >07777
Write 81(H)
HEX HEX
00 EC
HEX
81
Remarks 留 意 点
9
· Writing time to EEPROM is approximately 0.7 sec. When any error is found for parameter settings, the JW-20CM lights the error code (6F(H)) by the indication lamp. When error code 6F(H) lights, ① Check flag top address ② If the master station also lights up with error code 6F(H), check the top address and number of bytes in the relay link and register link in the master station which corresponds to the slave station in which the error occurred. · Written contents into the EEPROM are automatically transferred to the RAM of the JW-20CM when turning ON the power of the PC. At transferring, the PC checks BCC and compares BCC check code of the parameter memory address (007776(8)). When an error is found, the JW-20CM lights the error code (6E(H)) by the indication lamp. · If "parameter initialization" is selected, the module initializes parameter addresses 004000 to 007776(8).
PC operation Turning a slave module to monitor or change mode (PC operation). (Operation example of using JW-13PG) Screen display of JW-13PG
Monitor mode Change mode
C00000 >
9·32
Page 131
9-7
Setting contents of master station parameters [1] Setting contents When the JW-20CM is used as a master station, set the following items for parameters after setting switches. For details of the parameter memory, see pages 13·9 to 15. ※ Corresponding signs on pages 9·35 to 37
Item
Address (8)
Initial value
Contents (setting range)
※
(H)
004000 to 004001
00
Set file address by octal notation (File 0: 000000 to 007777)
a0
② Function
004002
00
Set to 01(H), ③ Number of connected stations
004003
00
Set number of stations including master stations by decimal (2 to 64), Relay link area top address or ④ number of offset bytes on slave station 01 to 77(8)
004004 to 004377
00
When a slave station is data link (standard function), set the top address by file address (8) (See page 13・20 and 21)
004400 to 004403
00
Set file address by octal notation File 0: 000000 to 15777(8) File 1 to 7: 000000 to 177777(8)
①
⑤
Top address of relay link area on the master station
Register link area top address on the master station
When a slave station is data link (memory save function), set the a1 to a77 number of offset bytes by decimal. (000000 to 00256(D))
b0
When a slave station is data link (memory save function), set the b1 to b77 number of offset bytes by decimal. (000000 to 02048(D))
Register link area top address or ⑥ number of offset bytes on slave station 01 to 77(8)
004404 to 004777
00
When a slave station is data link (standard function), set the top address by file address (8) (See page 13-20 and 21)
⑦
Number of relay link sending bytes of master station
005000 to 005001
00
Set the number of bytes by decimal (0 to 256, within 0 to 256 in total)
c0
⑧
Set number of relay link seding bytes of slave station 01 to 77(8)
005002 to 005177
00
Set the number of bytes by decimal (0 to 256, within 0 to 256 in total)
c1 to c77
⑨
Number of register link sending bytes of master station
005200 to 005201
00
Set the number of bytes by decimal (0 to 2048, within 0 to 2048 in total)
d0
⑩
Set number of relay link seding bytes of slave station 01 to 77(8)
005002 to 005377
00
Set the number of bytes by decimal (0 to 2048, within 0 to 2048 in total)
d1 to d77
⑪
Time-out time of SEND/RECEIVE instruction
007501 to 007577
00
Set time-out time in decimal [001 (0.1 sec.) to 255 (25.5 sec.)]
⑫
Set PC type of each station in SEND/RECEIVE function
007601 to 007677
91
Select from "00, 80, 81, or 91" by hexadecimal
⑬ Select system of each channel
007700 to 007703
00
Select instruction system or data memory starting system in CH0 to CH3
Top addresses in communication information storage area when ⑭ using data memory starting system.
007710 to 007713
00
Set by file number and file address - Setting range of communication information storage area (64 bytes) File 0: 000000 to 015777(8) File 1 to 7: 000000 to 177777(8)
※1
※ 1 : Set only when the PC is a JW model using the SEND/RECEIVE function.
9·33, 9
Page 132
※ Corresponding signs on pages 9·35 to 37
Item
Address (8)
Initial value
Contents (setting range)
※
(H)
Connection status of slave ⑮ station (error code output) Whether or not to output the ⑯ station number information
007750 to 007757
00
Turn ON a bit corresponding to each station (See page 13-15)
007763
00
Store the number of own station in the data memory when setting on 01(H) (storage area of 1 byte follows flag area of 24 bytes, valid when 007767(8) is 80(H)
007764
E0
File address lower bits
007765
01
File address upper bits
007766
00
File number (00(H) only)
007767
80
Flag output (Yes: 80(H), No: 00(H))
007771
00
Settable detection time with 100 ms pitch
V5 Flag area top address (communication and PC ⑰ operation condition monitor flag)
⑱
Communication error detection time
Initial value: 01E0( H ) ↓ 000740(a) (コ0740), e0, 00(H): Stop operation 01(H): Start operation ⑲
- Start/stop operation - Write to EEPROM
007777
01
80(H): Stop writing to EEPROM/operation 81(H): Start writing to EEPROM/operation 08(H): Initialize parameter
• ① to ⑲ correspond to numbers in page 9·38.
9
9·34
Page 133
[2] Communication area map (1) In case that setting data link (the standard function) when the master station and all slave stations are JW-20CM. ○ : Send ● : Receive Master station 00(8) (Data memory)
n=02to77 (8)
Relay link area (Within a total of 256 bytes)
Slave station n (Data memory)
a0 c0
a1
an
c0
c0
c1
c1
c1
cn
cn
cn
Register link area (Within a total of 2048 bytes)
Slave station 01(8) (Data memory)
b0 d0
b1
bn
d0
d0
d1
d1
d1
Flag area
9 dn
dn
dn
e0
e1
en
24 bytes
24 bytes
24 bytes
• Set the relay link area, register link area, flag area within the setting range nominated in page 13·20, 21. However, be careful not to double any address allocation of these. • Set a0 to en for parameters of master station and slave station. (See page 9·22, 33 and 34) Parameter for setting in master station
Parameter for setting in slave station
Top address of relay link area a0, a1 to an
Top address of flag area (slave station) e1 to en
Top address of register link area b0, b1 to bn Number of sending bytes of relay link area c0, c1 to cn Number of sending bytes of register link area d0, d1 to dn Top address of flag area (master station) e0.
9·35
Page 134
Register link area (Within a total of 2048 bytes)
Relay link area (Within a total of 256 bytes)
(2) In case that setting the data link ( V5 memory capacity save function) when the master station and all slave stations are JW-20CM. Memory addresses inside control module of slave station continue in order of receiving and sending. Master station 00(8) Slave station 01(8) n=02to77 (8) Slave station n○ : Send (Data memory) (Data memory) (Data memory) ● : Receive ※f1 (Within control a0 module) (Within JW-20CM) ※f1 (Within
9
Flag area
a1 an h1
64 bytes in total)
h1
c0
fn
※
cn c1
f1 +h1 hn
c1
fn +cn
cn b0 b1 i1 d0 bn dn d1
cn g1
※
g1
※
• Omitted a memory map inside control module. (Within a total of 512 bytes)
i1
gn in
※
g1 +i1 d1
gn +dn
dn
dn
e0
e1
en
24 bytes
24 bytes
24 bytes
• Set the relay link area, the register link area, and the flag area within the settings range of page 13·20, 21. Be careful not to double any address allocation of these. • Set “a0” to “in” above for parameters of master station and slave station (see page 9·22, 33 and 34). Parameter for setting in master station
Parameter for setting in slave station
Top address of relay link area a0, a1 to an
Top address of flag area (slave station) e1 to en
Top address of register link area b0, b1 to bn
Number of receiving bytes of relay link area h1 to hn
Number of sending bytes of relay link area c0, c1 to cn
Number of receiving bytes of register link area i1 to in
Number of sending bytes of register link area d0, d1 to dn Top address of flag area (master station) e0. • Set the receiving area for save memory function within the range of the link area. 0 ≦ a 1 ≦ Total number of bytes of relay link area -h 1 0 ≦ a n ≦ Total number of bytes of relay link area -h n 0 ≦ b 1 ≦ Total number of bytes of register link area -i 1 0 ≦ a n ≦ Total number of bytes of register link area -i n
9·36
Page 135
• Number of receiving bytes of slave station (h1 to hn, i1 to in) Select self-setting or “same as number of sending bytes (c1 to cn, d1 to dn)” according to parameter (007720 to 007723) of slave station. • Number of offset bytes can be set exceeding the number of sending bytes of the master station. a 1, a n ≧ c 0 and b 1, b n ≧ d 0 (3) When the master station and slave stations are all JW-20CM and both data link (the standard function) and data link ( V5 memory capacity save function) are set among slave stations. Set signs below by the parameters of the master station (page 9·22, 33 and 34). • An example of a relay link area map for the setting of the data link (standard function) for slave station 01 and the data link (memory capacity save function) to slave station 02. Master station 00(8)
a0 a2
Slave station 01(8) Slave station 02(8) Data link Data link (the standard function) (the memory capacity save function) (within JW-20CM) (within a1 control module)
c0
c0
c1 c2
c1
a2 f2 h2
c2
f2
f2 +h2 c2
c2
Total number of bytes of relay link area (c0 + c1 + c2) ≦ 256 bytes c2 + h2 ≦ 64 bytes 0 ≦ a2 ≦ c0 + c1
• An example of register link area map for the setting of the data link (the save memory function) to slave station 01 and 03 and data link (the standard function) to slave station 02. Slave station 02(8) Slave station 03(8) Slave station 01(8) Data link Master station 00(8) Data link Data link (the standard function) (the memory capacity save function) (the memory capacity save function) (within JW-20CM) d0 (within JW-20CM) b0
b3
b1 d1 d3 d1 d2 d3
g1 i1
g1+i1 d1
b2 d0 d1 d2 d3
g3 i3 g1 + i 3 d3
Total number of bytes of register link area (d0 + d1 + d2 + d3) ≦ 2048 bytes 0 ≦ b3 ≦ d0 + d1 + d2 0 ≦ b1 ≦ d0 + d2 + d3 i1 + d1 ≦ 512 i3 + d3 ≦ 512
9·37
9
Page 136
[3] Setting procedure In brackets: See page in chapter 9
When not using SEND/RECEIVE function
9
Start slave station PC operation
[ 39 ]
Turn ON the power of master station PC
[ 39 ]
Connect support tools
[ 39 ]
Stop PC operation
[ 39 ]
Stop operation of data link (007777(8) =00(H))
[ 39 ]
①
Set top address of the relay link area on the master station
[ 40 ]
②
Set data link function (004002(8) =01(H))
[ 42 ]
③
Set number of connecting stations
[ 42 ]
④
Set top address of relay link area on slave station 01 to 77(8) (at standard function) /number of offset bytes (at memory capacity save function)
[ 42 ]
⑤
Set top address of register link area on master stations
[ 43 ]
⑥
Set top address of register link area on slave station 01 to 77(8) (at standard function) /number of off set bytes (at memory capacity save function)
[ 44 ]
⑦
Set number of sending bytes of the master station relay link
[ 45 ]
⑧
Set number of sending bytes of the slave station 01 to 77(8) relay link
[ 45 ]
⑨
Set number of sending bytes of the master station register link
[ 46 ]
⑩
Set number of sending bytes of the slave station 01 to 77(8) register link
[ 46 ]
⑪
Set time-out time of SEND/RECEIVE instruction
⑫
[ 47 ]
Set PC model of each station
[ 48 ]
⑬
V5
Select system of each channel in SEND/RECEIVE function
[ 49 ]
⑭
V5
Top address in communication information storage area when using data memory starting system of SEND/RECEIVE functions
[ 50 ]
Set connection status of slave stations
[ 50 ]
Whether the station number information should be output or not
[ 50 ]
⑰
Set top address of flag area
[ 51 ]
⑱
Set detection time of communication error
[ 51 ]
⑲
Writing to EEPROM, start operation (007777(8) =81(H))
[ 52 ]
PC operation
[ 52 ]
⑮ ⑯
V5
End ① to ⑲ correspond to numbers in page 9·33.
9·38
Page 137
“Run” the slave station PC
Turn “ON” the power of the master station PC and connect support tools • Connect a support tool with the JW-20CM 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 data link
9
[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-22CM. (Operation example of JW-13PG) Screen display of JW-13PG Display the contents of parameter address 007777 by hexadecimal.
07775 07776 I PARAM. >07777
( ) Write 00(H).
HEX HEX
00 00
HEX
00
Reference 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
9·39
Page 138
From the previous page
Set top address of the relay link area on the master station [OCT (octal), word] • Set file address(8) to parameter address 004000 to 004001(8). These top addresses should not overlap the register link area, flag area, or any area used by other option module. In case of setting コ0210 (file address 000210(8)) using JW-13PG : Example for slave station of page 9·41.
Display the contents of address 004000(8)
(Word display)
After converting to octal, write the data 000210.
Screen display of JW-13PG 03774 03776 I PARAM. >04000
0 0
000000 000000
0
000210
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.
コ0677 コ0700 コ0777 コ1000
General purpose relay 001577 001600 001777 002000 003777
JW model PC
Latch relay
Register 19777 29000
005777 006000 Register
コ01577 TMR/CNT time limited contact
09777 19000
004777 005000 ZW model PC
000677 000700 000777 001000
Auxiliary relay
Register コ0377 コ0400
29777 39000
006777 007000 b0000
Register
TMR/CNT/MD current value
007777 b1777
To the next page
9·40
39777
JW model PC
I/O relay 000377 000400
ZW model PC
9
Byte address 09000
File address 004000
Byte address コ0000
File address