The text of a manual · part 19 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 149 to 158
Pages 149 to 158 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 149
From the previous page Set top address of flag area
File address: OCT (octal), word File number/flag: HEX (hexadecimal), byte
• Set the top address of the flag area (24 bytes) in order to monitor the communication condition and PC operation condition on the parameter address 007764 to 007767(8). • Flag area uses 24 bytes regardless number of connecting stations.
007764(8) 007765(8) 007766(8)
Initial value
Contents
Lower
E0(H)
Upper
01(H)
File number
007767(8) D7
Byte address 01E0(H)→000740(8)→コ0740
00(H)
File number 0
80(H)
Output flag
Output flag : ON Do not output flag : OFF
• In case of setting “コ0740, output flag” using JW-13PG.
Write “740(コ740)” in parameter addresses 007764 to 007765(8).
After switching to byte display, write file No. 0 with HEX (hexadecimal)
Screen display of JW-13PG 07765 07766 I PARAM. >07767
Write 80(H) to address 007767(8)
Enter communication error detection interval
HEX HEX
01 00
HEX
80
[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
⁝
⁝
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·51
9
Page 150
From the previous page Writing to the EEPROM of the JW-22CM, 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
(Operation example of JW-13PG) Screen display of JW-13PG Display the contents of address 007777(8)
Write 81(H)
07765 07766 I PARAM. >07767
HEX HEX
01 00
HEX
80
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. To recover from this condition. ■ Treatment when error code 6F(H) appears and COMM is turned OFF. ① Check number of top addresses/bytes of master station “relay link” and “register link.” ② Check the set value for number of connected stations. ③ Check the set value for master station flag top address. ④ Check whether the function is set to “relay register link.” · Written contents into the EEPROM are automatically written to the RAM of the JW-22CM when turning ON the power of the PC. At reading, the PC checks BCC and compares BCC check code of the parameter memory address (007776(8)). When an error is found, the JW20CM 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 master module to monitor or change mode (PC operation). (Operation example of JW-13PG)
Screen display of JW-13PG
Monitor mode Change mode
9·52
C00000 >
Page 151
9-8 Error and treatment Operation status of the JW-20CM can be check by indication lamps, flags, or system memory. (1) Indication lamp
JW–20CM COMM○ SD○ RD○ CD○ LT○ TEST○ ERROR○ FAULT○
○S0 ○S1 ○S2 ○S3 ○S4 ○S5 ○S6 ○S7
Indication lamp
Name
Operation
Recovery
COMM
Lights while the remote I/O is operating
--------------------------------------------------
SD
Flickers while sending data
--------------------------------------------------
RD
Flickers while receiving data
--------------------------------------------------
CD
Flickers while detecting a carrier
--------------------------------------------------
LT
Lights when the termination resistance switches turned ON
--------------------------------------------------
TEST
Lights while testing
--------------------------------------------------
ERROR
· Check disconnection of communication cable Lights while an error is detected (Indicate · Check settings of switches · Check settings of parameter error code by S0 to S7 LEDs) · Check power supply voltage.
FAULT
Lights when the watchdog timer is time up (JW-20CM is faulty)
Replace the JW-20CM
S0 to S7
Indicates error codes by hexadecimal when an error is occurred
See the next page
9·53
9
Page 152
(Error code) ● : ON, ○ : OFF
LED name 80 40 20 10 8 4 2 1
Error code (HEX)
Cause
Measure
○ ○ ○ ○ ○ ○ ○ ● 01(H) ROM error, upper CPU ○ ○ ○ ○ ○ ○ ● ○ 02(H) RAM error, upper CPU Replace the JW-20CM ○ ○ ○ ○ ○ ○ ● ● 03(H) 2 port RAM error against PC, upper CPU 2 port RAM error against communication CPU, upper CPU ○ ○ ○ ○ ○ ● ○ ○ 04(H)
○ ○ ○ ● ○ ○ ○ ● 11(H) ROM error, communication CPU ○ ○ ○ ● ○ ○ ● ○ 12(H) RAM error, communication CPU ○ ○ ○ ● ● ○ ○ ○ 18(H) Communication LSI error, communication CPU ○ ○ ○ ● ● ● ● ● 1F(H) No response, communication CPU
• Check the communication cable • Check for doubled allocation of slave station number • Replace the JW-20CM
○ ○ ● ○ ○ ○ ○ ○ 20(H) More than one token detected ○ ○ ● ○ ○ ○ ○ ● 21(H) Doubled address detected
Check the parameter setting, switch
○ ○ ● ○ ○ ○ ● ○ 22(H) Fault of sending section Replace the JW-20CM Token does not return within the rated interval ○ ○ ● ○ ○ ○ ● ● 23(H) Check the communication cable ○ ○ ● ○ ● ○ ● ○ 2A(H)
Over flow of receiving buffer. Occurs when the upper CPU processing is delayed. Check the communication
○ ○ ● ○ ● ○ ● ● 2B(H) Flame length error • Occurs because of a media execution cable error or noise from outside. ○ ○ ● ○ ● ● ○ ○ 2C(H) Media error ○ ○ ● ● ○ ○ ○ ○ 30(H) EEPROM error ● ○ ● ● ● ● ● ○ BE(H) BCC error ● ○ ● ● ● ● ● ● BF(H) Parameter setting error ● ● ○ ○ ○ ○ ○ ● ※C1(H) Communication error to ●● ● ● ●● ● ●
9
• After converting into octal, the lower two digits represent the slave station number of the current ※ FF(H) error. (Ex. C1(H) = 301(8) = slave station 01)
to
Check the communication cable Replace the JW-20CM Check the parameter contents
Check the communication cable and slave module
※ You need to select the "output error code for a slave station connection condition" at the master station parameter addresses 007750 to 007757(8). If more than one slave station has an error, the slave station with the lowest station number will be displayed.
Remarks • Error codes “23” and “2A(H)” may occur when applying power. This is not an error. • To check the communication cable, remove both connectors and short the connector terminals at one end. Then measure the conductivity using a tester. • Check the parameter and switch settings for all stations. If the settings are correct, replace the JW-20CM or JW-20RS.
9·54
Page 153
(2) Flag Flag area is 24 bytes from the “flag top address” set in the master station/slave station parameters. ① Flag table [ In case of flag top address is コ0740 (initial value) ] Slave station 01 (8)
Master station
コ0740
07
06
05
04
03
02
01
00
コ0741
17
16
15
14
13
12
11
10
コ0742
27
26
25
24
23
22
21
20
コ0743
37
36
35
34
33
32
31
30
コ0744
47
46
45
44
43
42
41
40
コ0745
57
56
55
54
53
52
51
50
コ0746
67
66
65
64
63
62
61
60
コ0747
77
76
75
74
73
72
71
70
コ0750
07
06
05
04
03
02
01
00
コ0751
17
16
15
14
13
12
11
10
コ0752
27
26
25
24
23
22
21
20
コ0753
37
36
35
34
33
32
31
30
コ0754
47
46
45
44
43
42
41
40
コ0755
57
56
55
54
53
52
51
50
コ0756
67
66
65
64
63
62
61
60
コ0757
77
76
75
74
73
72
71
70
コ0760
07
06
05
04
03
02
01
00
コ0761
17
16
15
14
13
12
11
10
コ0762
27
26
25
24
23
22
21
20
コ0763
37
36
35
34
33
32
31
30
コ0764
47
46
45
44
43
42
41
40
コ0765
57
56
55
54
53
52
51
50
コ0766
67
66
65
64
63
62
61
60
コ0767
77
76
75
74
73
72
71
70
① Communication monitor flag
Slave station 70 (8)
Master station
Slave station 01 (8)
② Operation condition monitor flag [1]
Slave station 70 (8)
Remarks • Even a slave station can monitor 24 bytes of flag.
9·55
Master station
Slave station 01 (8)
② Operation condition monitor flag [1]
Slave station 70 (8)
9
Page 154
② In the case of a master station (PC 00) · Communication monitor flag This flag is used to monitor the communication condition with other stations. Non-connected station keeps this flag as “OFF.” Flag operation Flag Condition for flag operation Own When the link start switch is set to “01(H),” and the master station is operating ON station normally. flag When the link start switch is set to “00(H).” (master OFF Improper setting of parameter, BCC check error, or other errors. station) Flag
Condition for flag operation
Normal communication with slave stations. Other Stopped communication or unable to station’s flag communicate with slave stations. (01 to 77) Communication monitor flag (1) of the master station is turned “OFF.”
Flag operation Specific slave station
ON
OFF
All slave stations
The master station periodically executes communication recovery operation with the communication error slave station. When the error situation is recovered, the master station returns to normal communication.
· Operation condition monitor flag [1] This flag is used to monitor the operation condition of slave stations when the communication with each slave station is normal. Non-connected station keeps this flag as “OFF.” Flag
9
Flag operation
Condition for flag operation
Own station flag Communication monitor flag (1) of the master station is turned “ON.” (master station) Communication monitor flag (1) of the master station is turned “OFF.”
Flag
Condition for flag operation Slave station is operating.
OFF
Flag operation ON
Other Slave station stops operation (not by an error cause). station’s Communication monitor flag (1) of the master flag station is turned “OFF.” (01 to 77) Slave station that communication monitor flag (1) is turned to “OFF.”
※ON
OFF
Specific slave station All slave stations
Not specified
※ Even if a master station PC has stopped operation normally or by an error, the JW-20CM turns “ON” this flag while communicating.
9·56
Page 155
· Operation condition monitor flag [2] This flag is used to monitor the abnormal stop of each slave station when the communication with each slave station is normal. Non-connected station keeps this flag as “OFF.” Flag
Condition for flag operation
Flag operation
Own Communication monitor flag (1) of the master station is turned “ON.” station flag (master station) Communication monitor flag (1) of the master station is turned “OFF.”
Flag
Condition for flag operation
※ON OFF
Flag operation
Specific Each slave station is normal. ON slave Any of the slave stations is faulty (caused to be Other station station’s stopped abnormally). Communication monitor flag (1) of the master station OFF All slave flag stations (01 to 77) is turned “OFF.” Slave station that communication monitor flag (1) is Not specified turned to “OFF.”
※ Even if a master station PC has stopped operation normally or by an error, the JW-20CM turns “ON” this flag while communicating.
9
9·57
Page 156
③ In the case of slave station (PC 01 to 77(8)) · Communication monitor flag This flag is used to monitor the communication condition with other stations. Non-connected station keeps this flag as “OFF.” Flag
Condition for flag operation When the link start switch is set to “01(H),” and at communicating with a master station normally.
Own station When the link start switch is set to “00(H).” flag When link start switch “00(H)” of the master station is OFF. Flag
Condition for flag operation
Normal communication with each station. Other Stopped communication or unable to station’s communication with each station. flag Communication monitor flag (1) of the master station is turned “OFF.”
Flag operation ON OFF
Flag operation ON
Specific station
OFF
All stations
· Operation condition monitor flag [1] This flag is used to monitor the operation condition of each station when the communication with each station is normal. Non-connected station keeps this flag as “OFF.” Flag
Flag operation
Condition for flag operation
Own Communication monitor flag (1) of the own station is turned “ON.” station Communication monitor flag (1) of the own station is turned “OFF.” flag
9
Flag
Condition for flag operation Each station is operating.
Slave station that communication monitor flag (1) is turned to “OFF.”
OFF
Flag operation ON
Other Each station stops operation (not by an error cause). station’s Communication monitor flag (1) of the own station flag is turned “OFF.”
※ON
OFF
Specific station All slave stations
Not specified
※ Even if the own station PC has stopped operation normally or by an error, the JW-20CM turns “ON” this flag while communicating.
9·58
Page 157
· Operation condition monitor flag [2] This flag is used to monitor the abnormal stop of each station when the communication with each station is normal. Non-connected station keeps this flag as “OFF.” Flag
Condition for flag operation
Flag operation
Own Communication monitor flag (1) of the own station is turned “ON.” station Communication monitor flag (1) of the own station is turned “OFF.” flag Flag
Condition for flag operation
Each station is normal. Any of the stations is faulty (caused to be stopped Other abnormally). station’s Communication monitor flag (1) of the own station flag is turned “OFF.” Slave station that communication monitor flag (1) is turned to “OFF.”
※ON OFF
Flag operation ON
Specific station
OFF
All stations Not specified
※ Even if a own station PC has stopped operation normally or by an error, the JW-20CM turns “ON” this flag while communicating.
9
9·59
Page 158
④ Monitor operation condition by each station PC By creating a program having the flags shown below in each station’s PC, the JW-20CM can monitor the operation condition of each station’s PC. [Ex.: In this case the flag top address is コ0740]
Flag top address 7 コ0740 to コ0747 コ0750 to コ0757 コ0757 to コ0760
6
5
4
3
2
1
0
Master station
07 06 05 04 03 02 01 00 to to to to to to to to
77 76 75 74 73 72 71 70 07 06 05 04 03 02 01 00 to to to to to to to to
(1) Communication monitor flag Slave station 70(8) (2) Operation condition monitor flag [1]
77 76 75 74 73 72 71 70 07 06 05 04 03 02 01 00 to to to to to to to to
(3) Oparation condition monitor flag [2]
77 76 75 74 73 72 71 70
Slave station 01
Slave station 01
Slave station 01 Slave station 01 normal operation
Communication monitor
Operation condition (1)
Operarion condition (2)
07401
07501
07601
9
9·60