Issuing And Using Any Command (Cmnd (490) Instruction); Using With Respect To A Host Computer Connected By Host Link - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Using FINS Commands
3-2-1

Issuing and using any command (CMND (490) instruction)

1,2,3...
CMND(490) execution
@CMND
Command
S
D
C
Communications Unit
(Controller Link Unit,
etc.)
3-2-2

Using with respect to a host computer connected by Host Link

The procedure for execution by CMND instruction is described below.
1. Store the command format of the FINS command (i.e., the command data)
in an I/O memory area, such as the DM area.
2. In the same way, store the control data (number of bytes of transmission
data, destination address, etc.) in an I/O memory area, such as the DM ar-
ea.
3. Designate S (first command word), D (first response word), and C (first
control word) for the CMND(490) operands, and execute the instruction.
4. When the FINS response is returned from the destination node (a CS/CJ/
CP-series CPU Unit or an NSJ Controller), the data will be stored accord-
ing to the response format beginning at the first response word.
1 byte
1 byte
Word
1 byte
1 byte
Word
CS/CJ-series CPU Unit
Automatically attached.
Automatically attached.
Note FINS commands and responses are handled as binary data, and data is sent
and received in binary format. (Host Link communications, however, are basi-
cally in ASCII.)
With Host Link communications, a FINS command frame with a Host Link
header and a terminator is sent from a host computer to a CS/CJ/CP-series
CPU Unit or NSJ Controller. The basic frame formats are shown below.
Note Host Link communications handle ASCII data, so data is sent and received in
ASCII. For that reason, FINS command and response frames must also be
sent and received in ASCII when they are handled using Host Link communi-
cations.
Command format data
Response format data
Command frame
2 bytes
FINS header
Command
code
Response frame
2 bytes
2 bytes
FINS header
Command
End
code
code
Section 3-2
Control data
Designates where to send, etc.
2,000 bytes max.
Text
1,998 bytes max.
Text
CS/CJ-series
CPU Unit
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents