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 27

SHARP Programmable Controller New Satellite W series: Network module JW-20CM, Remote I/O slave module JW-20RS User's Manual: Chapter 13: Appendix, pages 222 to 230

Pages 222 to 230 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 222

Memory address

Setting range

Bit address(8) Byte address(8) File address(8) 1 address = 1 address = 1 address = 8 1 points 8 points points File 1 Register

000000 to 177777

File 2 Register

000000 to 177777

File 3 Register

000000 to 177777

File 4 Register

000000 to 177777

File 5 Register

000000 to 177777

File 6 Register

000000 to 177777

File 7 Register

000000 to 177777

W70H W100H

JW50/70/100 JW50H/70H/100H

Register link area Flag area

· Addresses 07300 to 07377(8) and addresses 15760 to 15767(8) (bit address) are special relay areas. Do not use them as a data link area. · The addresses that can be used vary with the PC model and capacity. For details, see the instruction manual for reach model. · The usable file numbers will vary with the memory module that is installed on the PC.

Name of memory module

Usable file numbers ※ If file number is 1, file address shall be within 000000 to 037777(8).

ZW-1MA, JW-1MAH

0 or 1※

ZW-2MA, JW-2MAH

0 or 1

ZW-3MA, JW-3MAH

0, 1, 2

ZW-4MA, JW-4MAH

0, 2, 2, 3, 4, 5, 6, 7

13

13·21

Page 223

13-5 Instructions used with the F200 and F201 link function (1) F-200

F-200 → PORT

Write to a port [ ※ 1] F-200 →POR

Symbol

Function Operation contents

@S

TASKn

PORTn

Transfer task number "n" and PC memory data (set the top address using @S) to a ZW/JW-20CM at port "n." Contents of @S (Set S to S+6 using the PC) S S+1 S+2 S+3 S+4 S+5 S+6 S+7 S+10(8) S+11(8)

File address (lower bit) (upper bit) File number

Top address for sending data

Number of bytes transferred

Resister n n+1 n+2 n+3

Receive station's station number

000(8) 000(8)

Reserved

Not fixed (reserved)

n+

S to S+2: Set the top address for sending data using the file number and file address. S+3: Number of data bytes to transfer from the PC to JW-20CM. Set to 000 to 255(D). (000(D) equals 256 bytes.) S+4: Station number at which data is received. Set 000 to 077(8) using octal notation. S+5, S+6: Reserved area. Set 000(8). S+7 to S+11(8): Reserved area. Status from a port (not fixed). Setting range for TASK "n" Setting range for PORT "n"

13

Set to TASK 0. Set a port number for the PC basic rack panel on which the ZW/JW20CM is installed. (Ex.: JW-13BU) Control module

JW-20CM

Power module Port No.

13·22

②③④⑤

Page 224

Setting range for "S"

Operation conditions

Flag

PC model name

W701H/100H

JW50/70/100, JW50H/70H/100H

Setting range [ ※ 2]

コ0000 to コ1566 b0000 to b1766 09000 to 09766 19000 to 19766

コ0000 to コ1566 b0000 to b1766 09000 to 09766 99000 to 99766 E0000 to E1766

· Rising edge of the input signal (OFF to ON) [ ※ 3] · S+3 to S+11 are transferred regardless of the input signal condition. Contents No ZW/JW-20CM on the option board Waiting for a data transfer to a ZW/ JW-20CM on the option board Completed a data transfer to a ZW/ JW-20CM on the option board None of the above.

Non-carry Error 07354 07355 1 0

Carry 07356 0

Zero 07357 0

1

0

0

0

0

0

1

0

0

0

0

0

[ ※ 1] The description for this instruction is for the ZW/JW-20CM only. It is different from the contents in the PC programming manual. The F-200 instruction can only be used for one ZW/JW20CM module. [ ※ 2] Use コ0730 to コ0737 for special relays. [ ※ 3] When the F-200 instruction is turned ON, the non carry (07354) will be kept ON until the data transfer to the number 2 port memory is complete. If the F-200 instruction is turned ON while the non carry is ON, the data following this instruction will be invalid. Note: The F-200 instruction will not receive a response from the opposite station. Use the data link information for the response. Or, create a system for the data receive station to respond to the reception of the F-200 instruction.

13

13·23

Page 225

(2) F-201

F-201 PORT →

Read from a port F-201 POR→

Symbol

Function Operation contents

PORTn

TASKn

@D

Transfer task number "n" and PC memory data (set the top address using @S) to a ZW/JW-20CM at port "n." Contents of @S (Set S to S+6 using the PC) D D+1 D+2 D+3 D+4 D+5 D+6 D+7 D+10(8) D+11(8)

File address (lower bit) (upper bit) File number

Top address for sending data

Number of bytes transferred

000(8) 000(8) 000(8)

Resister n n+1 n+2 n+3

Reserved

Receive station's station number Completed receiving flag

7 6 5 4 3 2 1 0 Not fixed

Reserved (not fixed)

D to D+2: Set the top address for sending data using the file number and file address. D+3: Number of data bytes to transfer from the PC to JW-20CM. Set to 000 to 255(D). (000(D) equals 256 bytes.) D+4 to D+6: Reserved area. Set 000(8). D+7: Station number at which data is sent. Set from ZW/JW-20CM D+10(8): Station number at which data is sent. Set from ZW/JW-20CM

7 6 5 4 3 2 1 0 Flag D+11(8): Reserved area. Status from a port (not fixed). M

13

Setting range for TASK "n" Setting range for PORT "n"

Set to TASK 1. Set a port number for the PC basic rack panel on which the ZW/JW20CM is installed. (Ex.: JW-13BU) Control module

JW-20CM

Power module Port No.

13·24

②③④⑤

Page 226

Setting range for "S"

Operation conditions Flag [※4]

PC model name

W70H/100H

JW50/70/100, JW50H/70H/100H

Setting range [ ※ 2]

コ0000 to コ1566 b0000 to b1766 09000 to 09766 19000 to 19766

コ0000 to コ1566 b0000 to b1766 09000 to 09766 29000 to E1766

· Rising edge of the input signal (OFF to ON) [※ 3] Contents No ZW/JW-20CM on the option board Waiting for a data transfer from a ZW/ JW-20CM Completed a data transfer from a ZW/ JW-20CM None of the above.

Non-carry Error 07354 07355 0 1

Carry 07356 0

Zero 07357 0

1

0

0

0

0

0

1

0

0

0

0

0

[ ※ 1] The description for this instruction is for the ZW/JW-20CM only. It is different from the contents in the PC programming manual. The F-201 instruction can only be used for one ZW/JW20CM module. [ ※ 2] Use コ0732 to コ0737 for special relays. [ ※ 3] When the F-200 instruction is turned ON, the non carry (07354) will be kept ON until the data transfer to the number 2 port memory is complete. Even if the JW-20CM receives data from an other station using the F-200 instruction, it will remain inside the ZW/JW-20CM until the F-201 input signal changes ON from OFF, and the following data sent by the F-200 instruction will not be received. If the PC power is turned OFF, the data currently being received will be turned OFF. [ ※ 4] If the JW-20CM receives data using a continuous stream of F-200 instruction, the receive completion flag D+10(8) may not turn OFF. In this case use both the receive completion flag and the carry (07356) when programming.

13

13·25

Page 227

13-6 Application instruction using instruction system (1) F-202

F-202 OPCH

Open Channel

Symbol

Function

Range of PORT

F-202 OPCH

PORT CH·ST file N n

Specify the target station for inter-PC data communications to be performed across the satellite net (ZW/JW-20CM). These instructions are used in conjunction with the F-204 (SEND) or F-205 (RCV) instructions. Input the port number of rack panel that installed on ZW/JW-20CM. Example: JW-13BU

Control module

JW-20CM

Power module Port No.

②③④⑤⑥⑦

Range of CH

0 to 3 : Channel number for the specified port number. Available for use four times by classifying the same port numbers into CH0, CH1, CH2, and CH3 in the PC program.

Range of ST

00 to 77(8) : Communication target station number. Set by octal.

Range of file N

0 to 7 : Specify the PC data area (file number) of the communication target station. [ ※ ]

Range of n

000000 to 177777(8) : Specify the PC data top address (file address) of the communication target station. [ ※ ]

Condition

When an input signal is ON, keep it ON until the flag is changed.

13 Flag

Refer to F-204 and F-205 for the combination of F-204 and F-205. [※]

• After turning ON the input signal of F-202, keep it ON until the finish of the execution of the instruction. If the input signal is turned OFF during execution of the instruction, the instruction ends in an incomplete condition. Under this condition, next, when an F-202 instruction is given, it will come to a “communication jam,” and the instruction will not be executed. Turn the power OFF and then ON again for recovery. [ ※ ] F-202 instructions must always be used in conjunction with the F-204 (SEND) or F-205 (RCV) instruction.

13·26

Page 228

(2) F-204

F-204 SEND

Send Data F-204

Symbol

SEND

[Explanation] n s 14000

OPCH

Specify the first address and byte count of the send data for transmission across the satellite net.

Function

Operation

S to S + n - 1

Range of n

000 to 377(8) (256 bytes for 000(8))

F-202

F-204 SEND

Specified station

Instruction 2-0-01 file 0 04000

005

F-202 P.2 C.0 5.01 04000

09000 F-204 005

09000

]0000 to ]1577 @]0000 to @]1574 b0000 to b1777 @b0000 to @b1774 09000 to 09777 @09000 to @09774 Range of S : : 99000 to 99777 @99000 to @99774 [*1] E0000 to E1777 @E0000 to

When the input condition of 14000 changes from OFF to ON, this instruction sends the contents (5 bytes data) of registers 09000 to 09004 file 0's file area beginning with address 04000 (register 09000) on satellite net station 01, via CH0 of port No. 2. File 0

When input signal is ON.

Contents Unchanged of S Communication Zero Carry Error Non-carry contents 07357 07356 07355 07354 No response from port [*2] Communication jam [*3] After Communication busy operation Flag (waiting for response from target station) Nomal end Abnomal end [*4] (communication error) Remote station write protected

0

0

1

0

0

0

0

1

1

0

0

1

0

1

0

0

0

1

1

0

1

1

1

0

09000

001

09001

002

09002

003

09003

004

09004

005

Port 2

01 Sending

Response

Target station

Condition

09000

001

09001

002

09002

003

09003

004

09004

005

Flag

• Even addresses must always be used for indirect addressing (@コ0001, @b0173, etc. are prohibited). • For details of indirect addressing, see PC's programming manual. • F-204 instruction must always be used in conjunction with the F-202 (OPCH) instruction. • After turning ON the input signal of F-204, keep it ON until the finish of the execution of the instruction. If the input signal is turned OFF during execution of the instruction, the instruction ends in an incomplete condition. Under this condition, next, when an F-204 instruction is given, it will come to a “communication jam,” and the instruction will not be executed. Turn the power OFF and then ON again for recovery. [*1] [*2] [*3]

[*4]

Setting range of “S” is for JW model PCs. For ZW model PCs, setting range is コ0000 to 19777. In case that the network module of the assigned module number is not installed. In case that the channel is used with the other SEND/RECEIVE instruction. This instruction is executed after end of execution of the previously given instruction, and flag sign is changed into “communication busy” from “communication jam.” In case that response from the target station does not come within the time-out time.

13·27

13

Page 229

(3) F-205

F-205 RCV Symbol

Receive Data F-205 RCV n

[Explanation]

D

Function

Specify the first address and byte count of the receive data for transmission across satellite net.

Operation

Specified station → D to D + n - 1

Range of n

000 to 377(8) (256 bytes for 000(8))

14003

F-202

Instruction STR F-202 2.0.04

0

006

19000

04000

OPCH F-205

F-205 006

19000

RCV ]0000 to ]1577 @]0000 to @]1574 b0000 to b1777 @b0000 to @b1774 09000 to 09777 @09000 to @09774 Range of D : : 99000 to 99777 @99000 to @99774 [*1] E 0000 to E 1777 @E0000 to @E1774

When the input condition of 14003 changes from OFF to ON, this instruction reads 6 bytes of data from file 0's file area beginning with file address 04000 on satellite net station 04, via CH0 of port No. 2. The data read is stred to registers 19000 to 19005.

When input signal is ON.

Contents Unchanged of D Communication contents No response from module [*2] After Communication operation jam [*3] Communication busy (waiting for response from target station) Nomal end Abnomal end [*4] (communication error)

13

Specify target station Zero Carry Error Non-carry 07357 07356 07355 07354 0

0

1

0

0

0

0

1

1

0

0

1

0

1

0

0

0

1

1

0

04

Received data Port 2 09000

01

09001

04

09002

07

09003

10

09004

20

09005

30

Sending

Response

Flag

Target station

Condition

P.2 C.0 S.04 0 04000

File 0 09000

01

09001

04

09002

07

09003

10

09004

20

09005

30

• Even addresses must always be used for indirect addressing (@∫0001, @b0173, etc. are prohibited). • For details of indirect addressing, see PC's programming manual. • F-205 instruction must always be used in conjunction with the F-202 (OPCH) instruction. • After turning ON the input signal of F-205, keep it ON until the finish of the execution of the instruction. If the input signal is turned OFF during execution of the instruction, the instruction ends in an incomplete condition. Under this condition, next, when an F-205 instruction is given, it will come to a “communication jam,” and the instruction will not be executed. Turn the power OFF and then ON again for recovery. [*1] [*2] [*3]

[*4]

Setting range of “S” is for JW model PCs. For ZW model PCs, setting range is コ0000 to 19777. In case that the network module of the assigned module number is not installed. In case that the channel is used with the other SEND/RECEIVE instruction. This instruction is executed after end of execution of the previously given instruction, and flag sign is changed into “communication busy” from “communication jam.” In case that response from target station does not come within the time-out time.

13·28

Page 230

[Example 2] In case of reading data of 8 bytes to slave station 01(8) Module number installing own station JW-20CM : 2 Channel number using own station JW-20CM : 0 Data area of slave station 01(8) : 0 (file number) Send top address of slave station 01(8) : Register 19000 (file address 05000(8)) Receive data top address of own station : 09000 Assign target station

09000 09001 09002 09003 09004 09005 09006 09007

001 002 003 004 005 006 007 010

Reading data Port 2 CH0 Sending Response

Target Station

Own station register Receiving data

0 1(8) Flag

001 002 003 004 005 006 007 010

Target station register

19000 19001 19002 19003 19004 19005 19006 19007

■ PC program Switch

F–44 ↑

00000 Receiving relay 14000

F-32 SET

14000

F-202 OPCH

2-0-01 file 0

F-205 RCV

010

09000

Non-carry Error Carry Zero 14000 07354 07355 07356 07357 F–44 ↑ T000 Error

F-33 RST

TMR 000

Set receiving relay (14000)

005000

0010

Port No.2, CH0, station number 01(8) File number 0 File address 05000(8) Receiving data of 8 bytes stored register 09000 and after Detect non-execution after turning ON power (Flag does not change for 1 second) End of execution and the program resets 14000

14000

13

07355 Carry 07356

13·29