The text of a manual · part 15 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 109 to 118
Pages 109 to 118 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 109
In case of writing 8 bytes data to slave station 03 Module number installing own station JW-20CM : 2 Channel number using own station JW-20CM : 0 Sending data top address of own station : コ1000 (file 0, file address 001000(8)) Data area of target station : 09000 (file 0, file address 004000(8)) Top address of communication information storage area : コ1100 Own station register Sending data
コ1000 コ1001 コ1002 コ1003 コ1004 コ1005 コ1006 コ1007
CH0
Port No.2 CH0 Sending
001 002 003 004 005 006 007 010
Response
Target station Receiving data register
Target station
[Example]
03(8)
Communication information storage area
001 002 003 004 005 006 007 010
09000 09001 09002 09003 09004 09005 09006 09007
コ1100 コ1117
Switch
00000
F-08 OCT
000
コ1101
1 second for communication time (TIMER)
F-08 OCT
200
コ1102
Start instruction in SEND of one hierarchical layer (or same layer)
F-08 OCT
003
コ1103
Target station number 03(8)
F-08w OCT
000010
コ1106
Number of transfer bytes 8
F-101 SEGM
001000
0
コ1110
Sending top address of own station コ1000
F-101 SEGM
001000
0
コ1114
Receiving top adress 09000 of target station
11027 11004 11005 11006 11007 ↑ T000
TMR 000
0010
F-08 OCT
11005 11006
9·11
Detect non-execution after turning ON power (Flag does not change for 1 second) 000
コ1102
End of execution and the program resets 11027
9
Page 110
9-3
Data transfer required time and communication delay time
(1) Required time for data transfer This is the time required for the master station to complete communication with all stations, and is determined by the number of connected stations with and the number of data items to transmit. Transmission T operation cycle =
N + 136 × P 1250
+ 2.5 × P + α + 16 (ms)
N : Total number of link points (value to be calculated by relay link bytes and register link bytes 8 points). P : Number of connected stations (master + slave) 136 : 136 bits are used for station address and error check data on the communication format. 1250 : Transmission rate: 1.25M bits per second 2.5 : Inter-station wait time plus processing time to move to next station (unit : ms) α : Communication recovery operation time • When an error occurs at any station, the master station periodically treats the error. α = 3.5 × number of error stations ms 16 : Time to maintain token bus. It can enter at random intervals. [Example] In the case of two connected stations and 8 bytes of link points, Transmission T operation cycle =
8 bytes×8 points×2 stations + 136×2 stations 1250 + 2.5 × 2 stations + 16 = 21.32 ms
I/O processing
9
PC operation cycle
I/O processing PC operation
PC operation
Data exchange
Data exchange
Master station (PC00)
Slave station (PC01) T
: Send
9·12
: Receive
Page 111
(2) Communication delay time The communication data on the satellite net may have the delay shown below. PC00
ON
① ②
I/O PC00 JW-20CM
PC01
;; ;;
;; ;;
Operation cycle JW-20CM PC01
;; ;;
;; ;;
③
;; ;;
④
;; ;;
;; ;;
;;; ;;;
(Communication)
;; ;;
⑤
;; ;;
I/O
⑥
;; ;; ⑦ ON
① ② ③ ④ ⑤
Delay of input module Time required for PC to detect input state (one operation cycle max.) Operation time of sending PC (one operation cycle) Time to complete sending of operation result (one communication cycle max.) Time required for receiving PC to write receive data in PC data memory (one operation cycle max.) ⑥ Operation time of receiving PC (one operation cycle) ⑦ Delay of output module Communication delay time is the total time of ① to ⑦ above.
Remarks The buffer memory contents of the JW-20CM is renewed for each PC operation cycle. Therefore, a contact point which turns “ON” for only one operation cycle of a PC may not be transferred.
9·13
9
Page 112
(3) Data transmission between master PC and slave PC Providing synchronous transfer gives positive data communication. [An example of synchronized transfer by OUT instruction] Master station (PC00)
Slave station (PC01)
コ 0200
コ 0200
コ 0203
コ 0203
: Send
Program in master station 00000
F–44
02030
: Receive
Program in slave station 02000
02000
02030
02000
• 00000 is turned “ON” at the master station side. (OUT 02000 is a self-holding circuit.) • When 02000 is turned “ON” at the slave station side, OUT 02030 is also turned “ON.” This is sent back to the master station side.
9
9·14
Page 113
9-4
Expansion of network
The JW-20CM can transmit data between 64 stations at maximum. If more than 64 stations are required for data link, you can add communication stations with the procedure below. (1) Multiple installation of the JW-20CM Mounting more than one JW-20CM on the optional slot of the basic rack panel can increase the number of stations. [In the case of mounting 4 sets of JW-20CM] Master MasterMaster Master
Slave 01
02
03
04
05
73
74
75
76
77
73
74
75
76
77
73
74
75
76
77
73
74
75
76
77
63 stations max.
Slave 01
02
03
04
05
63 stations max.
Slave 01
02
03
04
05
72
63 stations max.
Slave 01
02
03
04
05
72
9 63 stations max. : Master station : Slave station Slave station number 01 to 77: octal
Remarks • When installing multiple number of modules on a single PC, make them allocated so that relay link area, register link area, and flag area may not overlap with each other. • When installing multiple number of modules on a single PC, pay attention to the total communication data volume and the number of bytes available for communication area. • Though more than one JW-20CM can be mounted on single basic rack panel, they cannot directly communicate with other stations beyond one network.
9·15
Page 114
(2) Hierarchical link When 2 sets of JW-20CM are mounted on the optional slot of the basic rack panel, hierarchical link communication is possible and can increase the number of stations.
Master
Slave 20
22
23
24
25
73
: Master station
17
74
20
75
21
63 slaves
16
63 slaves
15
63 slaves
14
63 slaves
13
63 slaves
12
63 slaves
11
63 slaves
10
63 slaves
63 slaves
07
63 slaves
06
63 slaves
05
63 slaves
63 slaves
63 slaves 21
04
63 slaves
03
02
63 slaves
Slave 01
76
77
: Slave station
Slave station number 01 to 77 : octal
Group A
Master
This PC is the master of group B while
Slave
Slave serving as a slave in group C.
Slave
Slave while serving as a slave in group C.
Slave
Slave
Slave
Master
9
This PC is the master of group A
Slave
Master
Group C
Group B
Remarks • Pay attention to hierarchical link system consisting of more than two levels as it takes time for communication between the stations at the highest level and at the lowest level. • Though more than one JW-20CM can be mounted on single basic rack panel, they cannot directly communicate with other stations beyond one network.
9·16
Page 115
9-5
Switch setting of master station or slave station Operation procedure In brackets: See page in Chapter 9
Start
Power “OFF” master/slave station
Remove the setting switch cover.
[9·18]
Set MODE (function) switch
[9·18]
Set STA. NO. (station number) switch
[9·18]
Set LT (termination resistance) switch
[9·19]
Set LG (shield ground) switch
[9·20]
Attach label
[9·21]
End
9·17
9
Page 116
Turn master module and slave module power “OFF.”
Remove the setting switch cover of network module JW-20CM. · With your fingertips over the top and bottom of the switch cover, pull the cover towards you to remove it. · Keep the cover saved as it must be installed after switch setting.
Set MODE (function) switch
Remote I/O
2
Data link (standard function)
67
1
MODE
45
Set at delivery
01
0
BCD
23
Function
EF
Setting value
8 9A
· In case of master station, be sure to setting “1.” · In case of slave station, be sure to setting “2” or “3.”
Computer link 3
9
Data link (memory capacity save function) Computer link
4-F
Test mode A service man will use these switches for adjustment.
Do not set “4 to F.”
7 8 2 3
4 5 6
2 3
9·18
X1
7 8
9 0 1
To the next page
STA.NO. X10
9 0 1
· In case of master station, be sure to setting “00(8).” · In case of slave station, set 01 to 77(8) in order “01” continuously. A maximum number of 63 slave stations can be connected. Enter station numbers using octal notation. Be careful not to assign the same number twice and do not skip any numbers.
4 5 6
Set STA. NO. (station number) switch
Page 117
From the previous page
Set LT (termination resistance) switch • When master module or slave module is at either end the communication line, make sure to set the termination resistance switch "ON."
LT (ON) LG (ON)
Turn ON the termination resistance switches on these two stations.
Reference: Function of the termination resistance switch If the communication line does not have a termination resistance, the high frequency signal will be reflected at the ends of the cable. These reflected signals can collide with the original communication signals, so that some stations will not be able to communicate normally. The use of termination resistance suppresses reflected signals. If the termination resistance switch on any of the stations in between the end of the cable is turned ON, the station will generate a reflection wave signal or attenuate the original signal and may not communicate normally.
· When the trunk line has a branch in it, turn ON the termination resistance at the station on the trunk cable.
9 Termination resistance (ON)
Drop cable (branch line should be less than 400 mm)
"T" branch
Trunk cable
· If you use a terminator (termination resistance made by Toko Denshi: ME-75) at the end of a signal cable, turn OFF the termination resistance at the station on the end of the cable.
Terminator
Terminator
Less than 1 km
Terminator: ME-75
To the next page
9·19
Page 118
From the previous page LT (ON)
Set LG (shield ground) switch
LG (ON)
· For communication lines, use a coaxial cable. · As coaxial cable is an unbalanced circuit, ground its shield by turning “ON” the shield ground switch.
Turn “ON” shield ground switch
Coaxial cable
Turn “ON” shield ground switch
• Make sure to provide a class-3 grounding for the GND terminal of the power module. Without grounding the power module, the JW-20CM cannot become conductive with the ground after turning “ON” the shield ground switch. (See page 7 · 2.) • Prior to any electric welding around the JW-20CM, take out the coaxial cable from the JW-20CM. While the coaxial cable is connected to the JW-20CM, any electric welding nearby the JW-20CM will cause the welding current to the JW-20CM and may damage part of its circuit pattern. JW-20CM
Coaxial cable
JW-20CM
9
JW-20CM has a fuse element here
Wraparound current
Turn “ON” shield ground
Turn “ON” shield ground FG
FG Rack etc.
Note: In case enough conductivity is not established. Electric welder
To the next page
9·20