Sharp JW-21MN manual Read the special I/O parameters, Set the special I/O parameters, 10-11

Models: JW-21MN

1 114
Download 114 pages 59.56 Kb
Page 50
Image 50
Write data
"+" ACK
"A" CMD SUB ATTR UNO PAADR
"+" ACK
"A" CMD SUB ATTR UNO PAADR N

[15] Read the special I/O parameters

Read out parameter data of special I/O modules (other than JW-21MN) from the control module. [Write mode assignment]: None

[Communication format]

Command

"+" "C" "L" "A" CMD SUB ATTR UNO PAADR N

 

Response

"C"

"L"

D1

DN

Symbol

Data

Details

 

CMD

42(H)

Function code

 

 

 

 

 

SUB

03(H)

Sub code

 

 

 

 

 

 

00 to 07(H)

When connected to a JW20/JW20H, set the value for

 

 

the module No. switch

(Symbols other

 

 

UNO

 

 

than the left:

 

When connected to a JW30H, the upper digits are rack

 

00 to 37(H)

No. and the lower digits are the value for module No.

See page 10-3.)

 

 

 

 

switch.

 

 

 

 

 

PAADR

000 to 177(8)

Read out start address

 

 

 

 

 

N

01 to 80(H)

Number of bytes to read out

 

 

 

 

 

D1 to DN

See the example

Read out data (for number of bytes of reading data)

 

 

 

 

 

[Ex.] To read parameter address data 030 to 032(8) of the special I/O module (Module No. 3). (Except one with (8), the data in cells are in hexadecimal notation)

Command

 

2B

43

 

4C

41

 

42

 

03

 

00

03

030(8)

003(8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

"C"

"L"

 

"A"

CMD

SUB

ATTR

UNO PAADR N

 

 

 

 

 

 

 

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2B

00

 

43

4C

 

41

 

42

 

03

00

03

030(3)

003(3)

15

21

 

 

03

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

 

 

 

 

CMD

SUB

 

 

 

 

 

 

 

 

 

 

030

031

032

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[16] Set the special I/O parameters

 

 

 

 

 

 

 

 

 

 

 

 

 

Read out data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write parameter data of the special I/O module (other than JW-21MN) to the control module.

[Write mode assignment]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2 (and when the PC stops operation by "PC operation stop F8(H)" command).

 

 

 

 

 

 

 

[Communication format]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

 

"C"

 

"L"

 

"A"

 

CMD

 

SUB

 

ATTR

UNO

PAADR

N

D1

 

 

 

DN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

Response

"C"

"L"

N

Symbol

Data

Details

 

CMD

42(H)

Function code

 

 

 

 

 

SUB

02(H)

Sub code

 

 

 

 

(Symbols other

 

00 to 07(H)

When connecting to JW20/JW20H, set value of module

UNO

No. switch

than the left: See

 

page 10-3.)

 

 

00 to 37(H)

When connecting to JW30H, upper digits are rack No.

 

 

 

and lower digits are set value for module No. switch.

 

 

 

 

 

 

 

 

PAADR

000 to 177(8)

Write start address

 

 

 

 

 

N

01 to 80(H)

Number of bytes to write

 

 

 

 

 

D1 to DN

See the example

Write data (for number of bytes of writing data)

 

 

 

 

 

[Ex.] Write 14(H), 00(H), and 33(H) to parameter address 040 to 042(8) of the special I/O module (module No. 2).(Except ones with (8) marks, the data in cells are in hexadecimal notation)

Command

2B

43

4C

41

42

13

00

02

040(8)

003(8)

14

00

33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

UNO PAADR N

040

041

042

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response

2B

00

43

4C

41

42

13

00

02

040(8)

003(8)

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

CMD

SUB

 

 

 

 

10-11

Page 50
Image 50
Sharp JW-21MN manual Read the special I/O parameters, Set the special I/O parameters, 10-11