Communication protocols
PROGRAMMING MANUAL
205
R
e
vi
si
o
n
1
.0
The subnet mask of the TJ2-MC64 is generic. It does not need to match with
the subnet mask of the PC.
Use the
Ethernet
command to read or write the Ethernet settings. It is
necessary to power off and on again the units for the changes to take effect.
You can check the IP address of the TJ2-MC64 with the Trajexia Studio
command-line and the
Ethernet
command: Type the command
Ethernet(0,
-1, 0)
at the command-line, and the IP address of the TJ2-MC64 shows on
the command-line.
4.2.1
Trajexia Studio protocol
The Trajexia Studio protocol is used by Trajexia Studio to program, monitor
and debug the TJ2-MC64.
Trajexia Studio uses a Telnet protocol. By default, this connection uses port
23. If this port is not accessible, you can change the port number with the
command
Ethernet(1,-1,4,new_port_n)
.
Unlike the standard Ethernet commands, this command takes effect
immediately after execution. The port changes to default at power on.
Therefore, this command needs to be included in any program that is
executed at power on.
The Trajexia Studio Protocol is TCP only.
4.2.2
FINS server protocol
FINS (Factory Interface Network Service) is a Proprietary OMRON
communication protocol. A subset of this protocol is implemented in
Trajexia. Refer to the Communication Commands Reference manual
(W342-E1).
The FINS protocol enables seamless communication with other OMRON
devices such as PLCs, HMIs, and CX-Drive.
The FINS server protocol requires no configuration settings.
By default, this connection uses port 9600. If this port is not accessible, you
can change the port with the command
Ethernet(1,-1,12,new_port_n)
.
Unlike the standard Ethernet commands, this command takes effect
immediately after execution. The port changes to default at power on.
Therefore, this command needs to be included in any program that is
executed at power on.
The FINS commands allow communications between nodes in different
networks. A FINS master device can read and write the Trajexia VR
variables and TABLE memory variables with FINS commands. These
commands use the Ethernet connection of the TJ2-MC64.
The FINS server protocol is UDP only.
Trajexia uses these FINS commands:
•
0101 (Read memory)
•
0102 (Write memory)
•
2001 (General Purpose Read)
•
2002 (General Purpose Write)
Read command (0101)
The FINS
read
command has this format:
Note
You need to set the power of the Trajexia system off and back on
before the change of the IP address takes effect.
WARNING
As the TJ2-MC64 can communicate with different sources at the
same time, the commands from two sources can interfere with
each other.
Note
The maximum length of a FINS command over an Ethernet con-
nection is 2012 bytes.