The text of a manual · part 31 of 37
Sharp Programmable Controller New Satellite JW10 User's Manual: Chapter 13 How to Use Communication Port, pages 244 to 250
Pages 244 to 250 of 307, from Sharp Programmable Controller New Satellite JW10 User's Manual
The original document is the PDF (5.0 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 jW-10CM
Page 244
b) Communication between slave stations (slave station→ master station→ slave station)
14100
14100
00000
(Slave station 1) Turn ON Input 00000
Slave station 1
One scan time
I/O
I/O
I/O
00400 (Slave station 2)
I/O
I/O
One scan time
Data exchange
Master station
I/O
I/O
I/O
I/O
T5
I/O
I/O
T6
I/O
I/O
I/O
I/O
T7
One scan time
Slave station 2
I/O
T4
T3
T2
14000
Data exchange
I/O
T1
14200 (Master station)
Data exchange I/O
I/O
I/O
I/O
T8
T9
T10
Turn ON Output 00400
13
T1: Delay on input port T2: Time until the PC detects input condition (maximum one scan time) T3: Operation time (one scan time) of slave station 01 (one scan time) T4: Time that slave station 1 takes to complete transmitting operation result (maximum [one communication cycle time + one scan time]). T5: Time that the master station takes to complete writing received data onto PC's data memory (maximum one scan time) T6: Operation time of the master station (one scan time) T7: Time that the master station takes to complete transmitting operated data (maximum [one communication cycle time + one scan time]). T8: Time that slave station 2 takes to complete writing received data onto PC's data memory (maximum one scan time) T9: Operation time of slave station 2 (one scan time) T10: Delay of output port Total delay time = T1 + T2 + T3 + T4 + T5 + T6 + T7 + T8 + T9 + T10
13-28
Page 245
13-4 Remote I/O [1] Communication specifications • Remote I/O can communicate between one JW10 master station and maximum of four JW10 slave stations. Master station
Slave station 1
Slave station 2
Slave station 3
Slave station 4
#234=02(H) #235=004(D) #236=00(H) #237=000(8)
#234=02(H)
#234=02(H)
#234=02(H)
#234=02(H)
#236=00(H) #237=001(8)
#236=00(H) #237=002(8)
#236=00(H) #237=003(8)
#236=00(H) #237=004(8)
Note: Use JW10 basic module for remote slave station. The expansion module, analog input module, and analog output module are not usable as remote slave station. • Remote I/O area of master station is allocated as follows:
▲
01100 to 01143
Slave station 1 Input: 36 points (0 to 43) Output: 24 points (400 to 427)
Slave station 2 Input: 36 points (0 to 43) Output: 24 points (400 to 427)
▲
▲
01500 to 01527 01200 to 01243
▲
01000 to 01043 01400 to 01427
▲
Master relay number
▲
01300 to 01343
▲
01600 to 01627
Slave station 3 Input: 36 points (0 to 43) Output: 24 points (400 to 427)
▲
01700 to 01727
Slave station 4 Input: 36 points (0 to 43) Output: 24 points (400 to 427)
13
Item
Specifications
Data transfer standard EIA RS-422A or equivalent Transfer rate 76800, 38400 bits/s No. of slave stations connected Max. 4 sets Remote I/O area Slave station 1 Input: 36 points (01000 to 01043) Output: 24 points (01400 to 01427) (Allocation of master Power error input (01047) station) Slave station 2 Input: 36 points (01100 to 01143) Output: 24 points (01500 to 01527) Power error input (01147) Slave station 3 Input: 36 points (01200 to 01243) Output: 24 points (01600 to 01627) Power error input (01247) Slave station 4 Input: 36 points (01300 to 01343) Output: 24 points (01700 to 01727) Power error input (01347) Communication line Shielded twisted pair cable. Party line connection. 2-wire system Total length: 500 m (76800 bits/s), 1 km (38400 bits/s)
13-29
Page 246
[2] Wiring JW10 (000)
JW10 (001)
JW10 (002)
JW10 (003)
JW10 (004)
L1 L2
L1 L2
L1 L2
L1 L2
L1 L2
SHLD
SHLD
SHLD
SHLD
SHLD
Class-3 grounding
Class-3 grounding Class-3 Class-3 grounding grounding Shielded twisted pair cable
Class-3 grounding
Total cable length: Less than 1 km RS-422A
Note 1: Do class-3 grounding for SHLD terminal. The operation without class-3 grounding may cause malfunction due to noise. Note 2: Never branch a communication cable into more than 3 lines.
Good
Bad
Conjunction terminal
Connection using a connector
[3] Setting system memory • When remote I/O is used, set the following system memory in master and slave stations. (1) System memory of master station #234 #235 #236 #237
Communication mode No. of slave stations Transfer rate Own station number
02(H): Remote I/O mode (Note 1) 001 to 004(D) 00(H): 76800 bits/s, 01(H): 38400 bits/s (Note 2) 000(8)
(2) System memory of slave station
13
#234 #236 #237 #206
Communication mode Transfer rate Own station number Output status at error of own station
02(H): Remote I/O mode 00(H): 76800 bits/s, 01(H): 38400 bits/s (Note 2) 001 to 004(8) (Note 3) 00(H): Reset (All of own outputs are OFF) 55(H): Hold the status just before error occurrence
Note 1 : To quit remote I/O communication, set #234 as 00(H). (Computer link mode) Note 2 : Set identical communication speed for the master station and slave stations. Note 3 : Allocate slave station ID numbers for each with sequential numbers from 001. Note 4 : Communication mode and station number are set on system [Example of label] memory. We recommend to mark these settings on a label Data link #001 and stick it on each case for easily readable the set contents.
[4] Communication flag • Communication condition of a master station and each slave station can be confirmed by communication flag of master station. Communication flag
Contents
07340
While normally communicating with all slave stations: ON
07341
While normally communicating with slave station 1 : ON While normally communicating with slave station 2 : ON While normally communicating with slave station 3 : ON
07342 07343 07344
While normally communicating with slave station 4 : ON 13-30
Page 247
[Example of communication flag state] Master station
Slave station 1
Slave station 2
Slave station 3
#234=02(H) #235=003(D) #236=00(H) #237=000(8)
#234=02(H)
#234=02(H)
#234=02(H)
#236=00(H) #237=001(8)
#236=00(H) #237=002(8)
#236=00(H) #237=003(8)
1) In case of normal communication (Master station communicates to all save stations normally.) Master station 07340 ON 07341 ON 07342 ON 07343 ON 07344 OFF *
* Not in use
2) When master station is error (Power OFF, disconect, stop mode, module error) Master station 07340 OFF 07341 OFF 07342 OFF 07343 OFF 07344 OFF *
* Not in use
3) When slave station 1 is error (Power OFF, disconnect, stop mode, module error) Master station 07340 07341 07342 07343 07344
OFF OFF ON ON OFF *
* Not in use
Note: If slave station 1 has an error (power OFF, not connected, or module error), the master station stops operation and communication with all the slave stations. When slave station 1 recovers from error condition, the master station resumes operation and communication with all the slave stations.
13-31
13
Page 248
[5] Operation condition of remote I/O slave station • The table below shows statue of remote I/O slave station at normal and error occurred condition.
System condition
Indication lamp POWER RUN ERR (green) (green) (red)
Error code(BCD) Halt Status of output port #160 to 167 COMM #206 = 00(H) #206 = 55(H) output Master Slave (green) (set by slave station)(set by slave station) Note 1: station station
Nor- Master station is operating mal (monitor, change mode)
ON ●
ON ●
OFF ○
Blink ◎, - Master station has stopped operation (program mode)
ON ●
OFF ○
ON ●
OFF ○
OFF
Latch
ON ●
OFF ○
ON ●
OFF ○
OFF
Latch
ON ●
OFF ○
ON ●
OFF ○
OFF
ON ●
OFF ○
ON ●
OFF ○
ON ●
ON ●
ON ●
OFF ○
OFF ○
OFF ○
Master station error Slave station is not connected Error *Note 2 *Note 3 Slave station error (except battery error)
Close (ON), - Open (OFF), 53
Codes Open other than (OFF) 53 and 22
53
Latch
Open (OFF)
53
53
OFF
Latch
Open (OFF)
53
*Note 3
Blink ◎, - Close (ON), 22
OFF ○
OFF
OFF
Open (OFF)
53, *Note 4
Slave station battery error Slave station power OFF
13
*Note 1 : JW-1324K/1342K do not have halt output. *Note 2 : In case of CPU error or input/output error, status different from above may occur. *Note 3 : When slave station error occurs, its error code is stored into slave station’s system memory #160 to #167 at power input of slave station. Error codes of slave station are the same as error codes of master station . See “8-3 Self diagnosis” for details. *Note 4 : A slave station battery error can be monitored with the slave station battery error flag on a remote I/O master station. (ROM version : version 2.3 or later) Slave station battery error flag 01047 01147 01247 01347
Contents Slave station 1 battery error Slave station 2 battery error Slave station 3 battery error Slave station 4 battery error
Notes
The slave station battery error flag will be turned ON in the a remote I/O area input relay on the master station when the battery voltage of any slave station drops below 2.5V.
• When system memory of the JW10 is set to #234 = 02(H) and #237≠000(8), the JW10 functions as remote I/O slave station. In this case, the JW10 performs only I/O refresh and you can set system memory. • Do not use halt output of slave station. 13-32
Page 249
[6] Communication timing and transmission time required (1) Communication timing • The master station communicates, exchanges remote I/O data, and refresh communication flag synchronous with master station’s scan cycle. Scan time of the master station increases with these intervals (one communication cycle time) only.
▼
▼
One scan time Communication Data exchange Refresh communication flag
I/O
▼
▼ ▼
▼
▼
▼ ▼
Slave Slave Slave Slave station 1 station 2 station 3 station 4
▼
▼
▼
I/O ▼
▼
▼
I/O
▼
▼
Master station PC scan cycle
Communication Data exchange Refresh communication flag
▼
Slave Slave Slave Slave station 1 station 2 station 3 station 4
One communication cycle
• When an error occurs during communication between the master station and slave stations, it stops remote I/O communication and PC operation, and enters into error condition. The master station also turns OFF communication flag of its own station and error occurred slave station. Possible causes of errors are as follows: ① Occurrence of sum check error. ② Slave station is in stop mode or abnormal condition. ③ Slave station is not connected or there is disconnection of a cable. • When the master station is in stop mode or is in abnormal condition, it does not communicate with any slave station.
(2) Transmission time required • Required interval time T for the remote I/O master station to communicate with all the slave stations (one communication cycle time) is as follows:
13 Number of slave stations 1 2 3 4
38400 bits/sec. (#236 = 01(H))
78600 bits/sec. (#236 = 00(H)) 3.8 ms 6.4 ms 9.0 ms 11.6 ms
1.2 + 2.6 × number of slave stations (ms)
13-33
7.6 ms 12.8 ms 18.0 ms 23.2 ms
2.4 + 5.2 × number of slave stations (ms)
Page 250
(3) Communiction delay time • When receiving data with remote I/O, the following delay will occur. 01000
01400
One scan time Master station scan cycle
Communiction and data exchange I/O
I/O
I/O
External contact point Input port
01000 logic side
Data memory Data memory Output port
01400 latch
Output port output element
T1
T2
T3
T4
T5
T1: Delay on input port (response time from OFF to ON) T2: Time until completion of writing data onto master station data memory (maximum one scan time) T3: Operation time (one scan time) T4: Time until completion of outputting operation result to output port (one scan time) T5: Delay of output port (response time from OFF to ON)
13
13-34