Communication protocols
PROGRAMMING MANUAL
158
Revi
si
on 3.0
/i
4.2.5
FINS client protocol
Trajexia can initiate the FINS communication using the
FINS_COMMS
BASIC command. Refer to the command description for details.
Both the Read Memory (0101) and the Write Memory (0102) commands are
supported.
This functionality is useful to communicate with an OMRON PLC, another
Trajexia system or a PC running FINS server application software.
With the Read Memory command, memory can be read from other devices
with FINS server capability. The Write Memory command can be used to
write data to devices with FINS server capability.
The command returns one of the following values, depending on the
outcome of the execution:
/i
4.3
Serial protocol
The TJ1-MC__ TJ1-MC__ has a DB-9 connector that contains two serial
ports:
•
Port 1: RS232
•
Port 2: RS422 or RS485, depending on the switch settings
See the Trajexia Hardware Reference manual for details.
Both ports can independently support these protocols:
•
Host Link master
•
Host Link slave
•
User defined protocol
4.3.1
Host Link master
If the TJ1-MC__ is the Host Link master, you can send BASIC commands to
a Host Link slave, for example a PC. When you send a BASIC command to
a Host Link slave, the execution of the next BASIC command waits until the
Host Link slave sends a response.
You can use these BASIC commands:
/i
Condition
Response code
(hex)
Description
All elements valid
0000
OK
Var_type invalid
1101
No area type
Start_address invalid
1103
Address range designation error
Bit_number invalid
1103
Address range designation error
Number of elements invalid
(totals)
1104
Address out of range
-1
The command executed successfully.
0
The command failed.
1
Request was not sent because the client or the FINS protocol is busy.
2
One or more of the request parameters is invalid.
3
Invalid source memory area.
4
Request was sent, but no response from the remote server was received within the
timeout period.
5
An error response code was received from the remote server.
Note
The serial port (port 1) CANNOT be used for program-
ming the unit.
BASIC command
Description
HLM_COMMAND
HLM_COMMAND
executes a specific Host Link command to the
slave.
I52E-EN-03.book Seite 158 Freitag, 29. Juni 2007 11:55 11