The text of a manual · part 31 of 44
Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual: 9. Built-in function, pages 266 to 275
Pages 266 to 275 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 266
9.2.1. The outline of PC Link operation PC link communication includes a connective sequence and a normal sequence. Check a connecting situation and setting in the connective sequence when power is supplied, and then exchange ON/OFF information of I/O in a normal sequence.
Master station
Slave-station
Connective sequence
Is connective
Is connective sequence OK?
sequence from master station waited?
N
Y
N
Connective sequence
Y Is connective sequence OK?
Normal sequence
N
Y Is connective sequence OK?
Y
Release abnormality
N Connective sequence
Inform
Y
Is normal sequence OK?
In reset switch ON?
Y
N N Inform Y
Is communication reset OK?
N Y
Is reset switch ON? N
Y
Is communication reset OK? N
Y
9-41
Is connective N sequence from master station waited?
Page 267
(1) The conceptual figure of data Master station I/O address L000 (M000)
Slave-station L000
(Output)
2)
(Input) Slave-statio n2
# (Input) (Output)
****
3)
(Output)
# (Input)
4)
(Input)
L000
# **** 1)
****
Slave-station n
L000
#
Slave-statio n1
Slave-station 2
(Output)
max continuous 512point
# 2N
(Output )
Slave-st ation n
**** (Input)
#
2N+1
(Input)
(Output )
#
# L7FF (M7FF)
L7FF
L7FF
L7FF communication order 1) → 2) → 3) → 4) → ····· → 2N) → 2N+1) → 1) → 2) ····· (N=1~15) # ········· Available for internal relay **** ····· Display a head address of an area to be used for communication in each station. The head address can freely be set in each station. Not necessary to adjust the address of the master station. However, those available for communication are only such areas as a link relay(L), an internal relay(M), an input-output relay(X,Y) a link relay (extended area) (EL), an internal relay(extended area)(EM,GM), an input-output relay(extended area) (EX,EY,GX,GY).
9-42
Page 268
(2) Connective sequence The master station checks the existence of connection and examine a coincidence of the input-output points between the master and the child station to set from the child station No.1 to the child station No.15. When the child station respond to the master station as specified, the connective sequence becomes OK, in turn, the normal sequence is returned. The child station will wait for the connective sequence from the master station after the power supply begins. Check the input-output points between the master and the child station. It is not until the connective sequence becomes OK that a response to a normal sequence from the master station can be made. (3) Normal sequence The master station carries out a normal sequence from child station No.1 to the last child station in turn. In the normal sequence, the master station exchange data with the child station by transmitting an amount equal to set points of ON/OFF data of I/O and receiving an amount equal to selected points of ON/OFF data of I/O. The master station exchanges data with the child station by repeating such an action. (4) Communication data when CPU stops PC link performs communication whether CPU runs or stops. However, when CPU is stopped, it can’t exchange data with an area to communicate with, making all the data to transmit turn into OFF data. Stop with CPU reset switch. Stop with a peripheral equipment → Transmit OFF data Stop RUN by a CPU error. (Received data is thrown away)
9-43
Page 269
9.2.2. Timing with PC operation The operation of PC is not synchronized with that of PC link, but an input-output data exchange is conducted at end of each scan.
1) PC One scans of PC < One scan of communication one scan One scans of PC
One scans of communication
2) PC One scan of communication < One scan of communication One scans of PC
One scans of communication
: Data of PC link to an internal dummy. Sending data to PC link : Receiving data to PC Exchanging sending data The time for one scan (communication set by No.1 child station, and covering the last child station) is determined depending on the number of the child stations and the points of communication. Communication speed in case of 19.2 One scan of communication (ms) = 1.2X + 9.5N Communication speed incase of 57.6 One scan of communication (ms) = 1.0X + 8.1N
X : Total number of input-output bytes N : The number of the Slave-stations
Communication speed three times as fast as a normal one. One scan of communication(ms) =0.5X + 7.3N Example: Communication speed 19.2kbps, the number of the Slave-stations = 7 the total number of input-output bytes points = 32bytes (256points) 1 scan = 1.2 × 32 + 9.5 × 7 = 104.9 (ms)
9-44
Page 270
9.2.3. Reset communication
Perform the reset communication at communication abnormality. (1) Method Switch a dummy for the reset from OFF to ON, and the communication is reset. available only for a rise time to switch it ON and OFF . Address
Content
Address
Content
V80
Reset communication 1
V84
Reset communication 5
V81
Reset communication 2
V85
Reset communication 6
V82
Reset communication 3
V86
Reset communication 7
V83
Reset communication 4
V87
Reset communication 8
Reset is
Note) The above addresses of special relays are for PC 2 compatibility mode and PC 3 mode (data memory split mode). (2) Reset timing 1 scan : END processing Data exchange with PC link
PC Reset communication
PC link
Communication abnormality
Initial reset Reset
Connective sequence
Normal sequence
Read out a link parameter.
PC link starts the same operation as in the commencement of power supply by the reset communication. (After execution of a communication sequence start I/O data exchange by a normal sequence) Note 1) The reset communication is performed with a reset start switch of CPU. Note 2) The reset communication is available only during the period of communication abnormality. However, when the link parameter is abnormal, it can’t become effective, so supply power again or turn on the reset start switch after rewriting the parameter.
9-45
Page 271
(3) Release communication abnormality Supply power again, or turn on the reset start switch, or reset communication in the master station, and the communication abnormality is released, which starts communication again. It is not necessary to reset communication in the Slave-station station. The Slave-station respond to the connective sequence from the master station during the communication abnormality and such abnormality is released by accepting the connective sequence, which makes responding to the normal sequence available. However, when the link parameter is modified, supply power again or turn the reset start switch of CPU on in the Slave-station. Master station
Slave-stati on. Communication abnormality
Master station Inform abnormality
Reset communication
Slave-station. Inform abnormality
Connective sequence
Master station Inform abnormality
Slave-station. Inform abnormality
Connective sequence
Master station
Slave-station. Inform abnormality
(4) An example of communication reset circuit 1) When using the reset communication circuit. Even when scattering occurs at the time of power supply, it can’t be regarded as a communication abnormality, so it is a circuit to reset for 2 seconds after power is supplied. First scan V06 Special relay of communication abnormality. Communication reset Press button signal for communication reset
[ VA2
VA2
T000 TIM K=0002.0
T000
]
SET : 2.0seconds
V80 Communication reset
T000
Y000 Communication abnormality
V06 FUN No.1 [ WMOVP 0000 → S31C
]
Clear separate resister Separate register
Note 1) The above is the example for a circuit in the case of link No.1 The communication abnormality special relay, reset communication push button signal and separate register differ depending on link number. Note 2) Never fail to clear the separate register when it is not used.
9-46
Page 272
2) When using the separate register, When “ 1) When using the reset communication " is employed and the raising of the power supply is delayed, “LINK ERROR”(error code :86) is stored in a register for outputting a error information” (error code :86). This circuit won’t display “LINK ERROR” for 2 seconds after power is supplied and is a circuit not to store the error code in the register for outputting the error information. Separate register
No. 1 scan V06
FUN No.101 [ WMOV
V06
]
Separate register set
K=0002.0
]
SET : 2.0seconds
0000h → S31C
]
Clear separate register
T00 [
T00
FFFFh → S31C
P00
TMR
FUN No.101 [
WMOV
Separate register After supplying power, separate all the stations and doesn’t inform them of any error for 2 seconds and then release separation, followed by a normal communication. Note 1) In the above circuit, link No.1 is used. Make sure that the separate register changes depending link No. Link No.
Separate register
Link No.
Separate register
1
S31C
5
S39C
2
S33C
6
S3BC
3
S35C
7
S3DC
4
S37C
8
S3FC
The address of the separate register changes in PC 3 mode. Note 2) When connecting with a FS terminal (V1.00) with an incorporated PC link as a master station, put in a PC3JG sequence a circuit employing the above 2) separate register. If this circuit doesn’t exist, it causes communication abnormality which may hinder communication.
9-47
Page 273
9.2.4.
Unlinking Function
When the slave gets in communication error, the master of DLNK stops communication to all the slaves and reports error. The unlinking function is such that a specific slave is broken away (or reset) from the communication network. This function makes it possible to separate the slave that is in the abnormal state from the communication network and continue communication for other normal slaves. (1) Specify the Slave-station to be separated Specify the Slave-station to be separated is carried out by setting data in the unlinking register of the master PC. Each bit for each Slave-station
Bit = 1 Specify Bit = 0 No specification
Unlinking Register (1word)
D15
·······
DA
D9
D8
D7
·······
D2
D1
D0 No relation Specify separation of Slave-station No.1 Specify separation of Slave-station No.2 Specify separation of Slave-station No.7 Specify separation of Slave-station No.8 Specify separation of Slave-station No.9 Specify separation of Slave-station No.10 Specify separation of Slave-station No.15
Link 1 – S31C Link 2 – S33C Link 3 – S35C Link 4 – S37C
Link 5 – S39C Link 6 – S3BC Link 7 – S3DC Link 8 – S3FC
Note 1) When not using the unlinking function, clear the unlinking register by using a sequence program. Since the separate register is maintained even after power supply is cut, separation sometimes still remains without noticing it. In this case communication is still normally conducted, but all the data turns to OFF data. Note 2) When the unlinking register is not 0000, turn off communicating with all the stations. Note 3) The address of the above register is for PC compatibility mode and PC3 mode(data memory split mode)
9-48
Page 274
(2) Communicating with the separated station 1) When the separated Slave-station is normal, The master station transmits OFF data of I/O to the separated Slave-station, threw away-received data from the Slave-station and performs operation, judging that the Slave-station has accepted OFF data of I/O. However, it normally communicates with the other Slave-stations not separated regarding ON/OFF data of I/O. If power supply is conducted or communication is reset in the master station while separation of the master and the Slave-station still remains, start the connective sequence like the other Slave-stations start, so the normal sequence conducts exchange of OFF data. 2) When the separated Slave-station causes the abnormal communication The parent station keeps transmitting the connective sequence till the abnormality of the child is released. If the abnormality is released and a normal response is obtained, it starts again the normal sequence as in the above 1) and continues the normal sequence to the rest of Slave-stations. 3) When the specify separation is released, In case of 1) ····· exchange a normal I/O data of ON/OFF In case of 2) ····· regard it as a communication abnormality and inform all the Slave-stations of such abnormality and stops communicating with them. 4) Others When the Slave-station that was not separated causes the abnormal communication, inform all the Slave-stations of such abnormality and stops communicating with them.
9-49
Page 275
9.2.5. PC Link status PC link informs a CPU special register of status information (the state of communication of the Slave-station, the state of connection of the Slave-station) Setting data in the separate register can separate the Slave-station.
MSB LSB Adress F E D C B A 9 8 7 6 5 4 3 2 1 0 Use S3*0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 The state of communication of the Sub-station S3*1 S3*2 Slave-station No. S3*3 S3*4 S3*5 S3*6 S3*7 S3*8 S3*9 S3*A S3*B S3*C 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 The state of communication of the Sub-station S3*D S3*E S3*F Abnormality information(Error code) S3x0 Abnormality information(error No.1 of detail) S3x1 Abnormality information(error No.2 of detail) S3x2 Abnormality information(error No.3 of detail) S3x3 Abnormality information(error No.4 of detail) S3x4 Abnormality information(error code stack No.1) S3x5 Abnormality information(error code stack No.2) S3x6 Abnormality information(error code stack No.3) S3x7 Abnormality information(error code stack No.4) S3x8 Abnormality information(error code stack No.5) S3x9 Abnormality information(error code stack No.6) S3xA Abnormality information(error code stack No.7) S3xB S3xC 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Separate the Sub-station S3xD S3xE S3xF
Code of Link No.
* x
* and x
1 0 1
2 2 3
3 4 5
4 6 7
5 8 9
6 A B
7 C D
8 E F
Note) In a single data mode the address is as follows.
Program 1 S3#0~ Program 2 ES0#0~ Program 3 ES1#0~ The above * and x are put into #.
9-50