Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual page 83

Hide thumbs Also See for TJ1-MC04 - PROGRAMMING 1:
Table of Contents

Advertisement

BASIC commands
Arguments
type
The type of the FINS command. 0 means FINS 0101, read memory from
remote FINS server. 1 means FINS 0102, write memory to the remote
server.
network
The destination network. For more details, see the Communication Com-
mands Reference Manual, cat. num. W342-E1, Section 3.
node
The node of the destination FINS server. For more details, see the Com-
munication Commands Reference Manual, cat. num. W342-E1, Section
3.
unit
The unit number of the destination FINS server. For more details, see the
Communication Commands Reference Manual, cat. num. W342-E1,
Section 3.
remote_area
The area of memory accessed on the destination FINS server. Range:
128..255. Note that this area must be one of the following values if the
destination is another Trajexia system: 0xB0: Integer VR value; 0x82:
Integer TABLE value; 0xC2: float TABLE value.
remote_offset
The memory offset on the destination FINS server. Range: 0..65535.
Note that this range will be more limited to the maximum TABLE or VR
addresses if the destination is another Trajexia system.
length
The number of items to be transferred. The range will depend upon the
FINS frame length and the capabilities of the client and remote servers.
The range for a Trajexia system is from 1 to 700 integer values, or 1 to
350 floating point values.
local_area
The local (source) memory area. Note that this area must be one of the
following values if the destination is another Trajexia system: 0x00: Inte-
ger VR value; 0x01: Integer TABLE value; 0x02 : float TABLE value.
PROGRAMMING MANUAL
local_offset
The offset of the first value in the local (source) memory area. The range
depends upon the VR or TABLE array size and value for the length argu-
ment.
timeout
The number of milliseconds to wait for a response from the destination
FINS server, before timing out.
IP1, IP2, IP3, IP4
Optional parameters that define the remote (destination) server IP
address. These arguments must be used if both the Trajexia system and
the destination FINS server do not belong to same network.
Example
A Trajexia system and an OMRON CJ1 PLC with Ethernet Unit CJ1W-ETN11
system are connected to the same network. The IP address of Trajexia sys-
tem is 192.168.0.5. The IP address of the PLC Ethernet Unit is 192.168.0.12.
When you execute the command FINS_COMMS(0,0,12,0,$82,
1000,20,0,500,5000,192,168,0,12), 20 words (length=20) of DM PLC mem-
ory area (remote_area=$82) is read, starting from DM1000
(remote_offset=1000), and is written in the Trajexia VR memory in integer
format (local_area=0), starting from VR(500) (local_offset=500). So, values
in PLC memory range DM1000 to DM1019 are placed in Trajexia memory
VR(500) to VR(519). The timeout is set to 5 seconds.
When you execute the command FINS_COMMS(1,0,12,0,$80,
50,10,0,300,3000,192,168,0,12), 10 words (length=10) of Trajexia VR mem-
ory as integers (local_area=0), starting from VR(300) (local_offset=300), are
written to the CIO area of the PLC (remote_area=$80), starting from CIO50
(remote_offset=50). So, values in Trajexia memory range VR(300) to
VR(309) are placed in memory CIO50 to CIO59 of the PLC. The timeout is set
to 3 seconds.
See also
N/A
83

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents