Cmnd/Send/Recv Instructions; Sample Program - Omron CP1L-EL20DR-D Operation Manual

Sysmac cp series cp1l-el/em cpu unit
Table of Contents

Advertisement

FINS Communications
Precautions
Response Codes
6-5-7

CMND/SEND/RECV Instructions

Sample Program

190
IP Network Address
The network ID from the IP address in hexadecimal. The network ID part cor-
responding to the address class (determined by the leftmost 3 bits) set here,
is enabled.
Router IP Address
The IP address (in hexadecimal) of a router connected to a network specified
with IP addresses.
If the IP router table contains fewer records than the number specified in the
number of records parameter, all the records contained in the IP router table
when the command is executed will be returned and the command execution
will end normally.
Response code
0000
Normal
1001
Command too large
1002
Command too small
CMND/SEND/RECV is the instruction to send FINS commands to other units.
In CP1L-EL/EM system, there is a new port that can be specified as destina-
tion unit. It is built-in Ethernet port of CP1L-EL/EM.
Use the low byte (bit 00 to bit 07) of the third control word of CMND instruc-
tion, or the low byte (bit 00 to bit 07) of the second control word of SEND/
RECV instruction, to specify built-in Ethernet port of CP1L-EL/EM as the des-
tination unit.
The unit address of built-in Ethernet port is 0xFA.
If user want to send FINS frame by Ethernet, please set command control
word Channel C+2 bit 08 to bit 11 to "0". (Serial port is not used.)
Issuing a FINS command to built-in Ethernet port of another CP1L-EM/EL on
the network.
The following program shows an example of sending a FINS command to
built-in Ethernet port of another CP1L-EL/EM on the network.
When CIO 0.00 and A202.07 (the Communications Port Enabled Flag for port
07) are ON, CMND(490) transmits FINS command 0501 (CONTROLLER
INFORMATION READ) to built-in Ethernet port of CP1L-EL/EM on node num-
ber 3. The response is stored in D200 to D230.
The CONTROLLER INFORMATION READ command reads built-in Ethernet
port information. The response contains the 2-byte command code (0501),
the 2-byte completion code, and then the 29 words of information, for a total of
31 words or 62 bytes.
The data will be retransmitted up to 3 times if a response is not received
within ten seconds.
Section 6-5
Description

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents