Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 35 of 44

Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual: 9. Built-in function, pages 306 to 315

Pages 306 to 315 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 306

Error Code Details and DLNK-M2 Error Display Special register contents *Note 1

PLC DLNK MS error error code code display

Error contents

NS DE display display

S3*0

@@F9

RAM error

84

F9 Red

S3*0

@@F8

84

F8 Red

S3*0

0011

84

-

-

-

S3*0

@@12

Non-volatile memory error No response in communication portion (at normal status) Communication no resume

84

-

-

-

S3*0

@@13

84

-

-

-

S3*0

0014

84

-

-

-

S3*0

0015

84

-

-

-

-

-

84

-

-

-

S3*0

0021

85

-

-

-

S3*0

0022

85

-

-

-

S3*0

0023

85

-

-

-

S3*0

0024

Communication no stop No response in communication portion at power on or reset No response in communication portion (after parameter transfer) Other hardware error Total number of bytes for input/output exceeding 256 Station with 0 byte present Number of bytes for input/output per one slave exceeding 128 Input / output designation error

85

-

-

-

S3*0

0025

85

-

-

-

S3*0

0026

85

-

S3*0

0027

85

-

S3*0

0028

85

-

-

-

S3*0

0029

Range over PLC input / output and range in duplication Sub code error Setting error of “General-purpose status area” Setting error of “Short-circuit state area”

85

-

-

-

S3*0

002A

Setting error of “Unconnected state area”

85

-

-

S3*0

@@F0

Node address duplication

85

F0 Green

Red

S3*0

@@F3

85

S3*0

##D6

S3*0

##D9

Switch setting error Collation error ( 「 Disagreement of the number of I/O bytes」 or「A slave cannot be recognized.」) Transmission error

S3*0

@@E0

S3*0 S3*0

F3 Red Green 86 d6

Transmission error (network power error) *Note 2 Transmission error (sending timeout) @@E2 *Note 2 @@F1

Bus off detection : Lighting on

: Flickering

86 d9 Green

86

E0 Green

86

E2 Green

86

F1 Green

: Lighting off

Red Red

Red

- : Undetermined

Note 1)The portion * of address of error code storage special register is determined by link No.

Content of S3*0

Link No.

1

2

3

4

5

6

7

8

*

1

3

5

7

9

B

D

F

@@ : Master's node address @@ is irregular for error code F3 (switch set error). ## : Node address of abnormal slave

Note 2) When the error situation is released, "E0" and "E2" displays of DLNK error code become the exchange number blinking displays. 9-81

Page 307

9.3.9.

Communication Status DLNK-M2 outputs the communication status in the special register.

(1) Normal Slave Data Area Each bit of normal slave data area shows communication status of each slave. The state flags of each slave are output to special register S3#0 - S3#3. Each bit No. represents node address. MSB

LSB

S3#0 15 14 13 12 11 10

9

8

7

6

5

4

3

2

1

S3#1 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 S3#2 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 S3#3 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 1: Communication normal state 0: Communication error state (or node not to use) (Either communications error or verification errors have occurred.) ! # part of the special register decides by link No. Link No.

1

2

3

4

5

6

7

8

#

0

2

4

6

8

A

C

E

Note 1) At the occurrence of sending timeout, network power error, all the bits of normal slave data area are set at OFF (0). Note 2) Even when the slave is unlinking state, and the master are set up for "Communication stop in communication error ", this flag functions. (2) Master Status Area The master status area shows master's node address, communication rate, error state, and state of network. Each state flag is output to special register S3#4 and S3#5. MSB 15

S3#4

LSB 14

13

12

11

10

9

8

*

*

*

*

*

*

7

6

Reserved for system use

5

4

3

2

*

*

*

Reserved for system

(*: Unfixed data)

1

0

(1) Switch setting error or (2) Non-volatile memory error (3) Node address duplication or (4) Bus off detection

(5) Network errors

(8) Error occurring (9) I/O data communicating

(6) Communications error (7) Verification errors

9-82

Page 308

MSB 15

LSB 14

13

12

11

10

9

S3#5

8

7

6

5

4

3

2

1

0

0 (14) Master’s node address set value 00-63(Binary)

(3) Node address duplication

(10) Under communication establishment

(4) Bus off detection (1) Switch setting error (2) Non-volatile memory error

(13) Master’s communication rate set value 00:125kbps 01:250kbps 10:500kbps 11:Setting is illegal.

(11) Hardware error (12) Link parameter error

! # part of the special register decides by link No. Link No.

1

2

3

4

5

6

7

8

#

0

2

4

6

8

A

C

E

Contents of each state flag (1) Switch setting error 1: Illegal, set state of communication rate (turning on both of SW1-5, 6) 0: Normal, set state of communication rate (2) Non-volatile memory error 1: Error occurred in non-volatile memory of a master. 0: Normal (3) Node address duplication 1: Master's node address overlaps with other nodes. (A master detects it, when a master joins after other nodes in a network.) 0: Normal (4) Bus off detection 1: The network is in the state of cannot the use. 0: The network is a normal condition. (5) Network errors 1: There are no responses from all slaves. (The slave doesn't exist on the network at all or the network power supply is error. ) Note) When error is released, it becomes "0". 0: Normal (6) Communications error 1: There is no response from the slave. 0: Normal

9-83

Page 309

(7) Verification errors(a: 「Disagreement of the number of I/O bytes」 or b:「A slave cannot be recognized.」) 1: a: 「Disagreement of the number of I/O bytes」 The number of bytes of a slave and the number of bytes of a link parameter are not in agreement. (Note) When "recognition of the number of slave I/O bytes" of a link parameter setup is set up for "not recognize" by DLNK-M2 or when a slave cannot be recognized, the number of I/O bytes of a slave becomes 0 byte. b:「A slave cannot be recognized.」 There is no response from a slave or A slave does not exist. Note1) After the abnormalities (Error code: d9) in transmission occur, it detects "a slave cannot be recognized", also when it resets, while an unusual cause has not been canceled. Note2) When a slave cannot be recognized, the number of I/O bytes of a slave becomes 0 byte. 0: Normal (8) Error occurring 1: It becomes one at any error from (1) to (7) or (11),(12). 0: Normal (9) I/O data communicating 1: I/O data communication is operating. 0: I/O data communication is stopped. (There is no response from all slaves by network errors or Bus off.) Note) The state of this flag on generating transmission error (error code E2) maintains the state before error generating. (10) Under communication establishment 1: During the communication preparation (While communication is established after a power supply ON.) 0: Communication is established. (11) Hardware error 1: Hardware error occurred in built-in DLNK-M2. 0: Normal (12) Link parameter error 1: Link parameter error occurred in master or CPU. 0: Normal (13) Master’s communication rate set value These flags show the transmission rate set value of the master. Please refer to “9.3 (4) Set communication mode” for setting of transmission rate. Transmission rate is set in the SW2-1,2. (Refer to "9.3 (4) Set communication mode”) Transmission S3#5 rate Bit7 Bit6 125kbps 0 0 250kbps 0 1 500kbps 1 0 illegal 1 1 (14) Master’s node address set value These flags show node address set value of the master. Please refer to “9.3 (5) Set communication mode” for set of the node address. S3#5 Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Weight ×32 ×16 ×8 ×4 ×2 ×1

9-84

Page 310

(3)CAN error data area DLNK has the CAN protocol. In the CAN protocol, error which occuers at the CAN level (lowest layer) is observed and the restoration is operated automatically. The total number of error which occuers at the CAN level is set in the CAN error data area. The CAN error is divided into six kinds according to the content, and is set in the special register S3#6-3#B. The CAN error is the standard of the stability of the communication line. The communication error does not necessarily occur, even if the CAN error occurs. It is possible that the communication error occurs when the CAN error occurs frequently. Please confirm the following items when the CAN error occurs frequently, even when communication error does not occur. (1) The construction of the terminator and wiring, etc. is correct. (2) The communication cable and the equipment do not have noise. (The communication line and the power line are separated.) The content of CAN error data area The data is set in the special register S3#6-3#B according to the error (six kinds). Address

Error

S3#6

Total number of stack error

S3#7

Total number of form error

S3#8

Total number of ACK error (Note 1)

S3#9

Total number of bit 1 error

S3#A

Total number of bit 0 error

S3#B

Total number of CRC error

Description Same bits were generated by 6 pieces or more consecutively. The format of the fixed portion of the received frame was wrong. There was no response from another node for the transmitted message. The bit of a logical value "1" was sent, but the value was changed to "0" The bit of a logical value "0" was sent, but the value was changed to "1" The mistake was found in the CRC check sum of the received message.

# part of Address decides by the link number. Link number #

1

2

3

4

5

6

7

8

0

2

4

6

8

A

C

E

* CAN error is observed by 10ms. If CAN error occurs, 1 is added to the total number of error. So, all the CAN errors may not be counted. * Error is counted to 65535(FFFFh). If the total number of error is 65535(FFFFh), The count is stopped. * The total number is cleared by power off or CPU reset at the communication error. But it is not cleared by the communication reset. (Note1) When the power supply is turned on, the ACK error might be counted.

9-85

Page 311

* Saving circuit of the number of CAN errors The total number of CAN errors (CAN error data area) is cleared by power off or CPU reset at the communication error. But it is not cleared by the communication reset. So, please design the following circuit to save the total number of CAN errors. example) The following circuit is saving the slave state, master status, number of CAN error and time of error occurrence communication error flag (Link No. 1) VA

Txxx TMR

Txxx

K=1.0

1sec timer Slave state Master status

P*** WBMOV

S3#0 -> D0FF0= 0012d

Number of CAN error transmission WBMOV

S019 -> D0FFC= 003d time of error occurrence transmission

# part of Address decides by the link number. Link No.

1

2

3

4

5

6

7

8

#

0

2

4

6

8

A

C

E

Address of communication error flag decides by the link number Link No. Communication error flag

1

2

3

4

5

6

7

8

VA2

VA6

VAA

VAE

VB2

VB6

VBA

VBE

According to the above-mentioned circuit, the area from D0FF0 is as follows D0FF0 1 2

Normal slave data area

3 4

Master status area

5 6 7 8 9 A B C D E

Number of CAN error time time time minute, sec (BCD) day, hour (BCD) year, month (BCD)

9-86

Page 312

(3)Connected slave setting area It is an area where the connection of the slave set in the link parameter of the CPU is shown. The state flag of each slave is output to special register S3#C-3#F.

Each bit number shows the node address (exchange number). MSB

LSB

S3#C

15 14 13 12 11 10

9

8

7

6

5

4

3

S3#D

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

S3#E

47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32

S3#F

63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48

Each bit = 1 : connect Each bit = 0 : no connect # part of the special register decides by link No.. Link No.

1

2

3

4

5

6

7

8

#

0

2

4

6

8

A

C

E

9-87

2

1

0

Page 313

9.3.10. Link file DLNK-M2 stores the communication of the slave in the link file.

The link file is the data stored in the link module. It is possible to read the data to the CPU with special module byte data reading fiat (SPR-FUN304). (1)Whole map Link file address

Content

0000 - 003F

Slave status

0040 - 00BF

Number of real slave I/O bytes

00C0 - 00FF

Retry frequency of slave

0100 - 0107

Communication cycle time

(2)Slave status The communication of each slave is stored in link file (0000-003Fh). Link file address DATA(hex) 0000h 0001h

Node00 Node01

003Eh 003Fh

Node62 Node63

MSB 7

6

Reserved

5

4

3

2

1

LSB 0

Reserved Reserved Transmission error I/O size discrepancy (Collation error)

I/O data communication in action Transmission error flag 1 : There is no response from the slave. 0 : Normal I/O size discrepancy (Collation error) 1 : Discrepancy between the communication byte number on parameter and the input/output byte number of slave on the communication line. 0 : Normal I/O data communication in action 1 : I/O data communication is operating. 0 : I/O data communication stopped An unused bit cannot be used because of the irregular data.

9-88

Page 314

(3)Number of I/O bytes of real slaves The number of I/O bytes of each slave connected on the communication line is stored in link file (0040-00BFh). Link file address

Data(hex)

0040h output bytes

0041h input bytes

0042h output bytes

0043h input bytes

0044h output bytes

0045h input bytes

00BCh output bytes

00BDh input bytes

00BEh output bytes

00BFh input bytes node 00 node 01 node 02 node 62 node 63

(4)Retry frequency of slave The accumulation value of communication retry (communication the re-demand) frequency to each slaves is stored in link file (00C0-00FFh). Link file Data(hex) address 00C0h node 00

00C1h node 01

00C2h node 02

00Feh node 62

00FFh node 63

* The maximum of the count is 255 times (FFh). After that it does not count up. * When power on or the CPU is reset, it is clear (00h). It is not cleared in communication reset. * Communication retry The master does the re-demand to the slave five times or less when there is no response from the slave while communicating. Master informs transmission error when there is no response from the slave for the fifth demand. The accumulation value of the retry frequency becomes stability of the communication line and a standard responded of the slave.

9-89

Page 315

(5) communication cycle time Loading the various cycle times, these are stored in link file (0100-0107h). Link file Data(hex) address 0100h communication cycle time : setting data(low) 0101h communication cycle time : setting data(high) 0102h communication cycle time : current data(low) 0103h communication cycle time : current data(high) 0104h communication cycle time : maximum data(low) 0105h communication cycle time : maximum data(high) 0106h communication cycle time : minimum data(low) 0107h communication cycle time : minimum data(high)

9-90