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

The text of a manual · part 27 of 44

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

Pages 226 to 235 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 226

9. Built-in function Total two ports are equipped as standard; one is port for CMP link (computer link) or PC link or SN-I/F, the other port for DLNK-M2. Parameter setting for built-in link

*1 is set using peripheral equipment (PCwin). Built-in link can be *1 allocated at required link No. (1-1 ~ 3-8 ). However, please do not set the same link parameter to each link No. In link parameter setting CMP link (computer link) or PC link is set to built-in rack No. and standard slot No. and DLNK-M2 is set to rack No. 0 and slot No. 0. If nothing is set to built-in rack No. and standard slot No. , SN-I/F is set automatically. It operates as CMP for PC2 interchangeable mode. *1 In link No. ( Link # - 1 ~ # - 8 ), mark “ # ” demotes corresponding program No. (Program 1 ~ 3).

Link module setting Link

Link No.

Rack No.

Slot No.

Module name

L1 (CMP/PC)

Random

Built-in (F)

Standard (0)

Computer link PC link

DLNK

Random

0

0

DLNK-M2

(Note1) If built-in lack No., standard slot No. is not made setting, SN-I/F is selected. In the case of PC2 compatible mode, it can be used as computer link.

(Note2)Even when not using built-in DLNK-M2, a link module needs to be set up. It is necessary to choose 「Do not」 to slave in a detailed setup of a link parameter.

9

(Note3)Please turn on the terminal switch when using it as SN-I/F. It operates as PC/CMP at the time of turning off. When you do not use it as SN-I/F, please turn OFF.

9-1

Page 227

9.1. Built-in computer link For the link detail, see " Instruction Manual for PC Link/Computer Link for PC2 Series ". (1) Computer link specification Items

Specification

Interface standard

Conforming to EIA RS-422

Communication system Transmission line

Start-stop synchronous, semi-dual (4-wire type/ 2-wire type selectable ) Shielded twist bare cable 0.3,0.6,1.2,2.4,4.8, 9.6,19.2,38.419.2 kbps (Presetting)

Communication speed Transmission distance Transmission form Number of stations Data type Characters used Error detection

Max 1 km (total length) 1:N Max 32 stations (Address No. 00 ~ 37) [set with octal number ) Start bit -------- 1 bit Data length --- 7 or 8 bit (presetting) Parity ----------- 1 bit (even parity Stop bit -------- 1 or 2 bit (presetting) ASCII code Parity check, sum check

(2) Communication formats The communication formats for command and response are as follows.

SC(H)

SC(L)

CR

SC(L)

CR

CR

SC(H)

9-2

SC(L)

RI

SC(H)

AD(L) AD(L)

(Abnormal)

RI

EC(L)

AD(H)

···

%

Response

Response content

RI

EC(H)

AD(L)

···

···

(Normal )

PRG

AD(H)

···

#

Response

Command content

PRG

···

?

PRG

···

Command

AD(H)

Sum Check area

Page 228

AD(H) (L)------------------- This represents Station No. to receive command in command format and Station No. to send response in response format. Two-digit octal number (00 ~ 37) is expressed with ASCII Code. RI----------------------------- Designates the time from receipt of command until sending response. One-digit hexadecimal number (0 ~ F) is expressed with ASCII Code (30H ~ 39H, 41H ~ 46H). The relationship of RI to response time is as per the table below. RI 0 1 2 3 4 5 6 7

Response time (msec) 0 10 20 30 40 50 60 70

RI 8 9 A B C D E F

Response time (msec) 80 90 100 200 300 400 500 600

PRG ------------------------- Representing an objective of command processing. 0 ~ 3 are expressed with ASCII Code. PRG Program PRG Program 0 System overall 2 Program 2 1 Program 1 3 Program 3 "PRG" is divided into "mandatory", "omittable" and "unnecessary" depending on commands. Where omitted, parameter-set program No. is an objective of command processing. SC (H) (L) ---------------- Representing sum check data . Two-digit hexadecimal number ( 00 ~ FF) is expressed with ASCII Code. EC (H)(L)------------------- Representing error code against error occurrence. Two-digit hexadecimal number (00~ 1F) is expressed with ASCII Code.

9-3

Page 229

: ----------------------------- Code (ASCII 3AH) representing command and response start. ? ------------------------------ Code (ASCII 3FH) representing "That's command" # ------------------------------ Code (ASCII 23H) representing normal response . % ----------------------------- Code (ASCII 25H) representing response against error (abnormal) . CR --------------------------- Code (ASCII ODH) representing end of command and response .

Supplement: Sum Check For improving the reliability of transmission data this module detects error by means of sum check in addition to parity check. The sum check sequence in this module is as follows. (1) Command content ( or response content ) up to last data from AD (H) is added as ASCII code remained unchanged. (2) Two-digit hexadecimal number in "SC" field is converted to 8-bit data, which is then added to the sum of (1). If this result is 0, the message is deemed as normal. Hence, sum check code is created by the sequence given below. Step-1 : Add the command content (or response content) up to its last data from AD (H) with ASCII Code remained unchanged. Step-2 : Obtain " complement of 2 (Note 1)" of lower 1 byte from the sum created in above (1). Step-3 : Divide 1-byte data created in above (2) into upper 4bit and lower 4bit, thereafter converting each to ASCII Code. (Note 1) Complement of 2 --- Reverse all bits of the binary expressed data ( 0→1, 1→0) and add 1 to each. (Note 2) When two characters in the sum check field [SC (H),(L) in command format are @ (ASCII 40H)", this module does not execute sum check.

Hence, enter

"@ @" in a column which needs no sum check. In this case, however, enter sum check data in this column as far as possible because the detection rate of transmission error comes down.

9-4

Page 230

(3) Communication commands No 1 2 3 4 5

Function I/O 1-POINT READ I/O REGISTER BYTE READ I/O 1-POINT WRITE I/O REGISTER BYTE WRITE SEQUENCE PROGRAM READ

6 7 8 9 10 11 12 13 14 15 16

SEQUENCE PROGRAM WRITE I/O REGISTER WORD READ I/O REGISTER WORD WRITE SCAN HALT SCAN HALT(RELEASE) RESET SCAN RESTART CPU STATUS READ FILL I/O REGISTER WRITE MODE SETTING WRITE MODE READ RESET

PRG

O O O O ∆ ∆ O O O O O O -

Commands Remarks MRL MRB Unit of 8 points SRR SRB Unit of 8 points RPM PRG=1,2,3 WPM RDR WDR HLT RUN STA MPC FDR EWR SWE RST

17 DUMMY SCAN HALT

-

PSC

18 DUMMY SCAN HALT RESET

-

PRC

19 CPU ID READ

-

IDR

20 TIMER/COUNTER SETUP /PRESENT VALUE READ

O

TCR

21 TIMER/COUNTER SETUP /PRESENT VALUE WRITE

O

TCW

22 TIMER/COUNTER SETUP VALUE WRITE

O

SPW

23 TIMER/COUNTER PRESENT VALUE WRITE

O

PPW

24 PARAMETER READ

∆ ∆ ∆ -

25 26 27 28 29 30 31 32 33

PARAMETER WRITE EXECUTE RIGHT LIMIT SETTING EXECUTE RIGHT LIMIT READ CLOCK TIME READ CLOCK TIME SETTING FILL SEQUENCE PROGRAM I/O REGISTER MULTI-POINT WORD READ & ADDRESS REGISTRATION

I/O REGISTER MULTI-POINT WORD READ I/O REGISTER EXTENDED MULTI-POINT READ & ADDRESS REGISTRATION

PRG=1,2,3 Unit of 16 points Unit of 16 points PRG=0,2,3 PRG=0,2,3 PRG=0,2,3 Unit of 16 points

PC2 interchange mode only PC2 interchange mode only Except extended timer and counter Except extended timer and counter Except extended timer and counter Except extended timer and counter

PRR PRW ELS ELR WTR WTC FIL RDA RDM

PRG=1,2,3

REA

PC3J

REM

PC3J

WEM IBR IBW

PC3J PC3J PC3J

39 PROGRAM+PARAMETER WRITE START

RWS

PC3J

40 PROGRAM + PARAMETER WRITE END & STATUS CONTINUE

ERC

PC3J

41

ERS

PC3J

34 I/O EXTENDED MULTI-POINT BYTE READ 35

I/O REGISTER EXTENDED MULTI-POINT WRITE & ADDRESS REGISTRATION

36 I/O REGISTER EXTENDED MULTI-POINT BYTE WRITE 37 EQUIPMENT INFORMATION BYTE READ 38 EQUIPMENT INFORMATION BYTE WRITE

PROGRAM + PARAMETER WRITE END & RESET/STATUS CONTINUE

-

42 EQUIPMENT INFORMATION WRITE START IWS PC3J 43 EQUIPMENT INFORMATION WRITE END IWE PC3J 44 CPU STATUS EXTENDED READ MPE PC3J PRG : = Program No. mandatory O = Omittable( When omitted, link parameter-set program No. But "HLT", “RUN", "STA" commands are handled as PRG=0.) ∆ = Omittable only under PC2 interchange mode PC3J : Commands extended for application to PC3J series CPU

9-5

Page 231

9.1.1. Communication commands 1. I/O

1 POINT READ : MRL to read one I/O point of I/O module.

Computer Link Command 1. Conventional ( Own program bit area)

R

I

SC(L)

M

Bit address 4 digits

SC(H)

?

Identifier

:

AD(L)

:

AD(H)

Identifier: P, K, V, T, C, L, X, Y, and M ( Bit area ) R I

C R

R

I

Bit address 4 digits

SC(L)

M

SC(H)

R I

Identifier

?

Program NO.

:

AD(L)

:

AD(H)

2. Bit area

Designate the data area in the designated program. If it is omitted, the own area is designated.

C R

C R

SC(L)

-

SC(H)

I

Word address 4 digits

Bit locate

I

SC(L)

R

SC(H)

M

Identifier

R I

Identifier

?

Program NO.

:

AD(L)

:

AD(H)

3. Register bit designation

C R

Designate the data area in the designated program. If it is omitted, the own area is designated. The data area (S, N, R, D, B, H, U, P, K, V, T, C, L, X, Y, M, EP, EK, EV, ET, EC, EL, EX, EY, EM, ES, EN, GX, GY, GM ) is designated for identifier. Bit locate: The data bit locate in the data designated with word address is displayed with hexadecimal number ("0" to "F").

Computer link response 1. Conventional (Own program bit area)

#

M

R

Bit address 4 digits

Data

:

AD(L)

:

AD(H)

Data .."0" or "1" R I

-

SC(H)

Word address 4 digits

SC(L)

I

SC(H)

R

C R

Data

M

Bit address 4 digits

Bit locate

I

Data

R

Identifier

M

Identifier

R I

Program NO.

#

Program NO.

:

AD(L)

:

AD(H)

2. Bit area

If extended bit area or extended register area (except EB) is designated with the program No. , the program No. on the response is the following number. GX, GY, GM : “7” U : “8” Others ; “0”

#

R I

9-6

SC(L)

:

AD(L)

:

AD(H)

3. Register bit designation

C R

Page 232

to read the bytes in I/O or Register module. The number of maximum available bytes :256 Bytes

2. I/O REGISTER BYTE READ : MRB Computer Link Command

M

R

B

Start address 4 digits

H / L

Byte number

SC(L)

R I

SC(H)

?

Identifier

:

AD(L)

:

AD(H)

1. Conventional ( Own program bit area)

C R

Identifiers...all-data-area identifiers except extended identifiers ( S, N, R,D, B, H, U, P, K,V,T,C, L, X, Y. M). The byte number is represented by hexadecimal "00" to "FF", but shown with the value after deduction of 1 from actual byte number.

R

B

Start address 4 digits

H / L

Byte number

SC(L)

M

SC(H)

R I

Identifier

?

Program NO.

:

AD(L)

:

AD(H)

2. Data area

C R

Designate the data area in the designated program. If it is omitted, the own area is designated. However, the identify EB is designated as follows

EB address program No.

start address 0000 - 7FFF

EB00000 - EB07FFF

9

EB08000 - EB0FFFF

A

0000 - 7FFF

EB10000 - EB17FFF

B

0000 - 7FFF

EB18000 - EB1FFFF

C

0000 - 7FFF

Computer link response

R

B

Identifier

#

R I

Program NO.

M

R

B

Start address 4 digits

H / L

Byte number

Data 1

Data 2

C R

Data N

SC(L)

M

SC(L)

R I

SC(H)

#

SC(H)

AD(L)

:

AD(H)

:

AD(L)

1. Conventional (Own program bit area)

Data N

:

Identifier

:

AD(H)

2. Data area

Start address 4 digits

H / L

Byte number

Data 1

Data 2

C R

If extended bit area or extended register area (except EB) is designated with the program No. , the program No. on the response is the following number. GX, GY, GM : “7” U : “8” Others ; “0”

9-7

Page 233

3. I/O

1 POINT WRITE : SRR to write I/O 1 point.

Computer Link Command

R

R

Bit address 4 digits

SC(L)

S

SC(H)

R I

Data

?

Identifier

:

AD(L)

:

AD(H)

1. Conventional ( Own program bit area)

Identifier: P, K, V, T, C, L, X, Y, and M ( Bit area ) Data .."0" or "1"

C R

R

Bit address 4 digits

SC(L)

R

SC(H)

S

Data

R I

Identifier

?

Program NO.

:

AD(L)

:

AD(H)

2. Bit area

Designate the data area in the designated program. If it is omitted, the own area is designated.

C R

SC(L)

C R

SC(H)

-

Data

R

Word address 4 digits

Bit locate

R

SC(L)

R

SC(H)

S

Identifier

R I

Identifier

?

Program NO.

:

AD(L)

:

AD(H)

3. Register bit designation

C R

Designate the data area in the designated program. If it is omitted, the own area is designated. The data area (S, N, R, D, B, H, U, P, K, V, T, C, L, X, Y, M, EP, EK, EV, ET, EC, EL, EX, EY, EM, ES, EN, GX, GY, GM ) is designated for identifier. Bit locate: The data bit locate in the data designated with word address is displayed with hexadecimal number ("0" to "F").

Computer link response

:

AD(L)

:

AD(H)

1. Conventional (Own program bit area)

#

R I

S

R

Bit address 4 digits

R

SC(L)

R

C R

Word address 4 digits

-

SC(H)

S

Bit address 4 digits

Bit locate

R

SC(H)

R

Identifier

S

Identifier

R I

Program NO.

#

Program NO.

:

AD(L)

:

AD(H)

2. Bit area

If extended bit area or extended register area (except EB) is designated with the program No. , the program No. on the response is the following number. GX, GY, GM : “7” U : “8” Others ; “0”

#

R I

9-8

SC(L)

:

AD(L)

:

AD(H)

3. Register bit designation

C R

Page 234

4. I/O

REGISTER BYTE WRITE to write I/O or register byte number. The maximum byte number : 256 bytes

: SRB

Computer Link Command

S

R

B

Start address 4 digits

H / L

Byte number

Data 1

Data 2

Data N

SC(L)

R I

SC(H)

?

Identifier

:

AD(L)

:

AD(H)

1. Conventional ( Own program bit area)

C R

Identifiers...all-data-area identifiers except extended identifiers ( S, N, R,D, B, H, U, P, K,V,T,C, L, X, Y. M). The byte number is represented by hexadecimal "00" to "FF", but shown with the value after deduction of 1 from actual byte number. Byte number "FF" is 256 bytes.

R

B

Start address 4 digits

H / L

Byte number

Data 1

Data 2

Data N

SC(L)

S

SC(H)

R I

Identifier

?

Program NO.

:

AD(L)

:

AD(H)

2. Data area

C R

Designate the data area in the designated program. If it is omitted, the own area is designated. However, the identify EB is designated as follows

EB address program No.

start address

EB00000 - EB07FFF

9

0000 - 7FFF

EB08000 - EB0FFFF

A

0000 - 7FFF

EB10000 - EB17FFF

B

0000 - 7FFF

EB18000 - EB1FFFF

C

0000 - 7FFF

Computer link response

S

R

B

Start address 4 digits

H / L

Byte number

SC(L)

R I

SC(H)

#

Identifier

:

AD(L)

:

AD(H)

1. Conventional (Own program bit area)

C R

R

B

Start address 4 digits

H / L

Byte number

9-9

SC(L)

S

SC(H)

R I

Identifier

#

Program NO.

:

AD(L)

:

AD(H)

2. Data area

C R

If extended bit area or extended register area (except EB) is designated with the program No. , the program No. on the response is the following number. GX, GY, GM : “7” U : “8” Others ; “0”

Page 235

5. SEQUENCE PROGRAM READ

: RPM to read the program words. The maximum number of words to be read : 128 words.

:

:

A D (H)

A D (L)

?

R I

Program No.

Computer Link Command

R

P

M

Address 1

Address 2

4 digits

4 digits

S C (H)

S C (L)

C R

Program area in the designated program is designated. Any command (conventional command) with no designation of Program 1 ~ 3 is rejected. However, where the PC3J is in run under PC2 Mode any command is accepted even without designation of program 1 ~3. The range of words in address 1 ~ address 2 shall be 128 words maximum. If address 2 exceeds 7FFF (in the case of 32KW) or 3FFF (in the case of 16KW), it would result in error.

:

:

A D (H)

A D (L)

#

R I

Program No.

Computer link response

R

P

M

Address 1

Address 2

Data 1

Data 2

4 digits

4 digits

4 digits

4 digits

Data N 4 digits

6. SEQUENCE PROGRAM WRITE

: WPM

S C (H)

S C (L)

C R to write program words. The maximum number of words to be written is 128 bytes.

:

:

A D (H)

A D (L)

?

R I

Program No.

Computer Link Command

R

P

M

Address 1

Address 2

Data 1

Data 2

4 digits

4 digits

4 digits

4 digits

Data N 4 digits

S C (H)

S C (L)

Program area in the designated program is designated. Any command (conventional command) with no designation of Program 1 ~ 3 is rejected. However, where the PC3J is in run under PC2 Mode any command is accepted even without designation of program 1 ~3. The range of words in address 1 ~ address 2 shall be 128 words maximum. If address 2 exceeds 7FFF (in the case of 32KW) or 3FFF (in the case of 16KW), it would result in error.

:

:

A D (H)

A D (L)

#

R I

Program No.

Computer link response

W

P

M

Address 1

Address 2

9-10

S C (H)

S C (L)

C R

C R