The text of a manual · part 32 of 44
Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual: 9. Built-in function, pages 276 to 285
Pages 276 to 285 of 387, from Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual
The original document is the PDF (16 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.
For the Toyopuc OUT-15 and Toyopuc OUT-18
Page 276
Inform communication status function PC link incorporated in PC3JG conveys a status information to a special register (the state of communication of the Slave-station, and the state of connection of the Slave-station) (1) The state of communication of the Slave-station Inform the special register, “S3*0”, of the state of communication of the Slave-station.
MSB Adress F E
9
8
7
6
5
4
3
2
LSB 1 0 Use
S3*0 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
D
C
B
A
The state of
0 communication of the child
Code of
*
Link No.
1 0
*
The Slave-station No.
2 2
3 4
4 6
5 8
6 A
7 C
8 E
When informing the communication status, there may arise a time lag at the maximum of several millions of ms.
In the master station, The bit becomes “ 1” corresponding to the Slave-station that performs normal communication. (Even in the separate state, the bit becomes “1” if communication is carried out) 1 : the Slave-station performing a normal communication. 0 : the Slave-station where communication is not performed When communication abnormality occurs, the bit becomes “0” corresponding to the Slave-station that detects the abnormality and the other Slave-stations retain the contents of state just before the occurrence of abnormality (when the communication abnormality occurs communication isn’t really carried out, but the bit remains “1” corresponding to the Slave-station where the normal communication was carried out just before the abnormality occurred). In the Slave-station, When the link parameter is set, the bits that are set as connected in a local station alone become “1”. The bits all become “0” when the communication abnormality occurs. (2) The state of connection of the Slave-station Inform the special register, “S3*C”, of the state of communication of the Slave-station
MSB F E
9
8
7
6
5
4
3
2
1
S3*C 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
Adress
D
C
B
A
LSB 0 Use The state of
0 communication of the child state
In the master station, When the link parameter is set, the bit that is set as connected, corresponding to the Slave-station, becomes “1” . In the Slave-station, When the link parameter is set, among the bits that are set as connected, only those corresponding the local station, become “1” .
9-51
Page 277
(3) Diagnostic method of communication abnormality Execute using the separate function and the status of communication of the Slave-station.
Example of diagnosis(PC-Link master station on an operation board is assigned to link No.1) The Slave-station no.4
The Slave-station No.2
PB2
PB2 Wiring for back up Slave-station 1
Slave-station 4
PB2 Operation board
Open circuit
PB2
PB2 Communication wire PB2 : Light branch switch
1) 2) 3)
Separate all the connecting stations. Reset communication. Monitor the state of connection and communication of the Slave-station. MSB LSB S300 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 S30C
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
Slave- station No.1 and No.2 are impossible to be communicated with. Judged as a open circuit between No.3 and No.4 stations according to a link system diagram. 4) 5)
Distributing and connecting wires Monitor the state of connection and communication of the Slave-station S300
MSB 0 0
0
0
0
0
0
0
0
0
0
1
1
1
1
LSB 0
S30C
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
Make sure that there are no Slave-station which cause communication abnormality. 7)
Release separation and start operation again.
9-52
Page 278
9.2.6.
Inform abnormality of PC Link
When detecting an abnormality in PC link, inform CPU of the abnormality. CPU not only displays an error message but also sets a special relay, a register for outputting CPU error information, and a special register for a link error information. (1) The special relay associated with the link Address
Content
VA1
Link1
Parameter abnormality
VA5
Link2
Parameter abnormality
VA9
Link3
Parameter abnormality
VAD
Link4
Parameter abnormality
VB1
Link5
Parameter abnormality
VB5
Link6
Parameter abnormality
VB9
Link7
Parameter abnormality
VBD
Link8
Parameter abnormality
VA2
Link1
Communication abnormality
VA6
Link2
Communication abnormality
VAA
Link3
Communication abnormality
VAE
Link4
Communication abnormality
VB2
Link5
Communication abnormality
VB6
Link6
Communication abnormality
VBA
Link7
Communication abnormality
VBE
Link8
Communication abnormality
VC4
Special module abnormality
VC8
I/O configuration abnormality (over 9 sheets of communication modules are mounted)
(failure of a communication module)
(The total memory capacity of the communication modules exceeds 60Kbyte.) VF2
Special module layout abnormality (lack No., slot No. and link module name of the link parameter are different from those in a mounted state.)
Note) The addresses of the above special relay are those in PC2 compatibility mode and PC 3 mode (data memory split mode)
9-53
Page 279
(2)Link error code Link error code is stored in the CPU special register. CPU The address of The content of (link) CPU special the address error register to store stated in the left The error content Corrective action code error column. information (link parameter abnormality) Setting is 1001 S3×0 85 not carried out in BCD (master and child 0082 S3×1 (01)
Abnor mality lank stations)
85 (01)
S3×0 S3×1
1001 0083
85 (01)
S3×0 S3×1
1001 0085
85 (01)
S3×0 S3×1
1001 0086
85 (01)
S3×0 S3×1
1001 0087
85 (01)
S3×0 S3×1 S3×2
1001 0088
(link parameter abnormality) Values other than 0.1 are set in master and Slave-stations. (link parameter abnormality) The total number of diverted bytes is over 65 Check and modify bytes. (master and Slave-stations)
the content of the (link parameter abnormality) Exceeding link parameter. Check the setting. the final address of communication
Alarm area.
Slave station
(link parameter abnormality) Link area overlaps Real I/O.
Sending points per one station exceed 48 bytes.
address(62~70)
86 (*0) 86 (*0)
86 (*0)
86 (*0)
S3×0 S3×1 S3×2 (L) S3×0 S3×1
10*0 00D0
(connecting sequence error with # station of the Slave-station) Vertical parity exists in a received data Slave station address(62~70) from the Slave-station. (master station) 10*0 (connecting sequence error with # station of the Slave-station) 00D1 Negative response from the Alarm Slave-station. (master station)
10*0 (connecting sequence error with # 00D2 station of the Slave-station) Received an address data that had not (L) Except address data been expected. (master station) S3×2 (H) Receive data 10*0 (connecting sequence error with # S3×0 station of the Slave-station) 00D3 S3×1 No response from # station of the Slave station S3×2 (L) S3×0 S3×1 address(62~70) Slave-station. (master station)
S3×0 86 (*0)
S3×1 S3×2
86 (*0)
S3×0 S3×1 S3×2
(connecting sequence error with # station of the Slave-station) 00D6 Horizontal parity error exists in the received data from the Slave-station. Slave station address(62~70) (Master station)
10*0
Check whether # Alarm station of the Slave-station is connected, or check the order of power supply. Check the setting Check the wiring of communication wires.
10*0 00D8
(connecting sequence error with # station of the Slave-station) address(62~70) No horizontal parity data has not been Slave station
A code indicating the link No. of PC link that occurred an error is put into x in the table. Code table for link No Link no. × (link No. code)
1 1
2 3
3 5
Note 1) * indicates the Slave-station No.
9-54
4 7
5 9
6 B
7 D
8 F
Page 280
CPU (link) error code
The address of CPU special register to The content of the address stated in the left column. store error information S3×0 S3×1
S3×2 (H)
(L) S3×3 (H)
S3×4 (L) S3×0 86 (*2)
S3×1 S3×2 (L)
The address of the Slave-station(62~70) The received data (the byte number from the master to the sub) In # station of the Slave-station the Check the content of the Alarm The received data (the byte link parameter. number from the sub to the number of input-output bytes is different from that of the master master) station. (master and Slave-station) The data set in the local station (the byte number from the sub to the master) The received data (the byte number from the sub to the master) 10*2 Response from # station from the Check the content of the 00D9 Slave-station that is not set up in link parameter of the Alarm the connective sequence. The address of the Slave-station. (master station) Slave-station(62~70)
S3×0
10*9
S3×1
00D4 (L)
S3×2 (H)
86 (*9)
Abnorm ality lank
Corrective action
10*1 00D7 (L)
86 (*1)
The error content
(L) S3×3 (H)
The connective sequence was not
Select a communication flag carried out with # station of the Slave-station. (1-7 stations)
Check the content of the link parameter of the Select a communication flag When multiple stations were set in Alarm master station. (8-15 stations) one Slave-station, a normal The normal sequence sequence started though there were doesn’t start even Completion flag of the some stations where the connective connective sequence (1-7 sequence had not been completed. stations) (Slave-station)
Completion flag of the connective sequence (8-15 stations)
86 (08)
86 (*4)
86 (*4)
86 (*4)
S3×0
1008
S3×1
00D5
S3×0
10*4
S3×1
00E8
S3×2 (L) S3×0
Slave station address(62~70) 10*4
S3×1
00E1
S3×2 (L)
Slave station address(62~70)
S3×0
10*4
S3×1 S3×2
Except address data (62~70) Receive address
S3×0
10*4
S3×1
00E3
S3×2 (L)
Slave station address(62~70)
(the normal sequence error with # station of the Slave-station) Negative response from # station of the Slave-station master station) (the normal sequence error with # of sub station station of the Slave-station) Receive the address data that was contrary to the expectation. (master station)
(the normal sequence error with # station of the Slave-station) No response from # station of the Slave-station (master station)
A code indicating the link No. of PC link that occurred an error is put into x in the table. Code table for links No.
Link no. × (link No. Code)
1 1
2 3
Alarm
(the normal sequence error with # station of the Slave-station) Vertical parity exists in the received
Check shear in to *
00E2 (L) (H)
86 (*4)
10 minutes after the completion of Check an error code of the normal sequence. the master station. (Slave-station)
3 5
Note 1) * indicates the Slave-station No. 9-55
4 7
5 9
6 B
7 D
8 F
Alarm
Page 281
CPU (link) error code
The address of CPU The content of the special register to address stated in the store error left column. information
S3×0 86 (*4)
S3×1 S3×2 S3×0
86 (*4)
86 (07)
S3×1 S3×2
10*4
The error content
Abnor mality lank
Corrective action
(the normal sequence error with # station of the Slave-station) Parity error exists in the horizontal parity received from # station of the Slave station address(62~70) Slave-station. (Master station)
0
10*4
(the normal sequence error with # station of the Slave-station) No data of the horizontal parity sent 00E6 from # station of the Slave-station Slave station address(62~70) (master station)
S3×0
1007
S3×1
00E4
89
No data of the normal sequence Check the error code of Alarm was sent from the master station. the master station. (Slave sequence) Setting error of lack No., slot Check and modify Alarm No. and link module name of the the content of the link parameter link parameter. Abnormality of the module hardware. Interface abnormality with CPU module.
84
Check whether wires are securely connected Alarm in # station of the Slave-station.
Supply power again or turn on a reset start switch of CPU, Alarm however, if an abnormality still occurs, replace the link module.
A code indicating the link No. of PC link that occurred an error is put into x in the table. Note 1) Code table for link No. Link no. 1 1 × (link No. code)
2 3
3 5
4 7
5 9
6 B
7 D
8 F
Note 2) The address of the Slave-station in the table is as follows. The address of the The Slave-station The address of the The Slave-station Slave-station No. Slave-station No.
62
The Slave-station 1
6A
The Slave-station 9
63
The Slave-station 2
6B
The Slave-station 10
64
The Slave-station 3
6C
The Slave-station 11
65
The Slave-station 4
6D
The Slave-station 12
66
The Slave-station 5
6E
The Slave-station 13
67
The Slave-station 6
6F
The Slave-station 14
68
The Slave-station 7
70
The Slave-station 15
69
The Slave-station 8
Note 3) # indicates the Slave-station number. Note 4) The above addresses of special register are for PC2 compatibility mode and PC3 mode (data memory split mode). 9-56
Page 282
(3) Special register for link error information output. The link error code is composed of 8 step shift register and is able to store up to 8 times. The address to store an
Address
Content
S310 ~ S31F S330 ~ S33F S350 ~ S35F S370 ~ S37F S390 ~ S39F S3B0 ~ S3BF S3D0 ~ S3DF S3F0 ~ S3FF
S3×0
Error code
S3×1 S3×2 S3×3 S3×4
The error of detail
S3×5 S3×6 S3×7 S3×8 S3×9 S3×A S3×B
Error code stack No.1 New 2 3 4 5 6 7 Old
Link No. error. 1 2 3 4 5 6 7 8
Note) Code for link No. of PC link that caused an error is put in X. Link No. code table Link No. × (link No. code)
1 1
2 3
3 5
4 7
5 9
6 B
7 D
8 F
(4) Inform abnormality of the separated Slave-station. If the separated Slave-station can’t respond to the master station because of power supply failure and the like, communication abnormality doesn’t occur. Each data of an communication area remains OFF and the error code of communication can’t be stored.
9-57
Page 283
9.2.7.
Flow chart to check PC Link abnormality
Start
Does abnormality occur?
Doesn’t occur
Occur
A
S3×0 =1001
=10*0 B
=10*1 C
=10*2
=10*9
D
E
=1008 F
=10*4 G
=1007 H
S3×0 =0082
=0083
Set the link parameter code in BCD again to get the right one.
=0085 ~ 88
Specify the master and Slave-stations again.
1) Link area 2) Check whether the link points (byte number) is right or not.
A code indicating the link No. of PC link that occurred an error is put into x. Code table for link No. Link no.
1
2
3
4
5
6
7
8
× (link No. code)
1
3
5
7
9
B
D
F
Note 1) # indicates the Slave-station No.
9-58
Page 284
A
B
Check whether separation is carried out. → Clear the separate register
Communication abnormality in the connective sequence with the Slave-station at # t
Y
Release
Supply power to the master station again.
N Termination
N
Abnormality occurs
Y
Exchange modules.
Termination
1) Is power supplied to the Slave-station? → Supply power to the Slave-station. 2) Is the Slave-station number right? → Set the Slave-station number again to get the right one. 3) Is communication speed (baud rate) right? → Set it to the right baud rate.
Termination
4) Is wiring right? → Distribute wires properly.
A table for the separate register link No.
Separate register
Release
1
S31C
N
2
S33C
3
S35C
4
S37C
5
S39C
6
S3BC
7
S3DC
8
S3FC
Y
Termination
Exchange modules
Termination
9-59
Page 285
C
E
In the Slave-station the number of input-output bytes is different from that of the master station. → Set a right link parameter.
D
In port # 1) Is the link parameter of the master station right? →
Set the link parameter of the master station again to get the right one. 2) Is the Slave-station number right? → Set the Slave-station number again to get the right one.
Release
Y
N Termination
Exchange modules
Termination
9-60