Omron CS1W-DRM21, CJ1W-DRM21 operation manual Using SEND090, RECV098, and CMND490

Models: CJ1W-DRM21 CS1W-DRM21

1 274
Download 274 pages 23.02 Kb
Page 162
Image 162

Using FINS Message Communications

 

Section 6-3

 

 

 

 

 

 

 

 

 

Word

Bits 00 to 07

 

Bits 08 to 15

 

 

 

 

 

 

 

 

 

C

Number of command bytes to send: 0 to 542 (i.e., $0000 to $021E)

 

 

 

 

 

 

 

 

C+1

Number of response bytes to receive: 0 to 542 (i.e., $0000 to $021E)

 

 

 

 

 

 

 

 

 

C+2

Destination network address

 

Set to 0.

 

 

 

(0 to 127, i.e., $00 to $7F, 0 = local

 

 

 

 

 

network)

 

 

 

 

 

 

 

 

 

 

 

 

C+3

Destination unit FINS address1

Destination node address2

 

 

C+4

Bits 00 to 03:

 

Bits 08 to 10:

 

 

 

No. of retries (0 to 15,

Transmission port number

 

 

 

i.e., $0 to $F)

 

($0 to $7)

 

 

 

Bits 04 to 07:

 

Bit 11 to 14:

 

 

 

Set to 0.

 

Set to 0.

 

 

 

 

 

Bit 15: ON: No response.

 

 

 

 

 

OFF: Response returned.

 

 

 

 

 

 

 

 

 

C+5

Response monitoring time ($0001 to $FFFF = 0.1 to 6553.5 seconds)3

Note

1. Indicates a Unit as shown in the following table.

 

 

 

 

 

 

 

 

 

 

Unit

 

Setting

 

 

 

 

 

 

 

 

CPU Unit

 

00

 

 

 

 

 

 

 

 

User program in FA computer

01

 

 

 

 

 

 

 

CPU Bus Unit

$10 to $1F: Unit numbers 0 to 15

 

 

 

 

 

$FE: The local Unit

 

 

 

 

 

 

 

 

2.Values of $00 to $3E indicate nodes 0 to 63.

3.Designates the length of time in (0.1-s units) that the PC retries transmis- sion when bit 15 of C+3 is OFF and no response is received. The default value is $0000, which indicates 2 seconds. If baud rate is slow and the re- sponse monitoring time is short, an error may occur.

Note Explicit messages can be sent to OMRON slaves and DeviceNet devices made by other manufacturers by setting the FINS command code to 28 01. When this is done, set the response monitoring time in C+5 to at least the value set for the message monitoring timer (default: 2 s). If it is set to less than the value for the message monitoring timer (default:2 s), communications may be busy even if the next command is executed after the first one times out.

6-3-5 Using SEND(090), RECV(098), and CMND(490)

SEND(090), RECV(098), and CMND(490) instructions normally use an AND of the Network Enabled Flag in the CPU Unit (A20200 to A2020007 corre- sponding to ports 0 to 7) and the Online Flag (word n+11, bit 00) (or the Mes- sage Communications Permitted Flag (word n+24, bit 12)) for the DeviceNet Unit.

Note The Online Flag and the Message Communication Permitted Flag perform the same operation.

Execution

Network

Online Flag

condition

Enabled Flag

 

SEND(090), RECV(098), or CMND(490) word n+11, bit 00

or

151

Page 162
Image 162
Omron CS1W-DRM21, CJ1W-DRM21 operation manual Using SEND090, RECV098, and CMND490