Specifications

Communication protocols
PROGRAMMING MANUAL 183
Revision 5.0
Trajexia can exchange data in the holding registers via the ModbusTCP
protocol. Trajexia supports 16-bit signed integer values and 32-bit IEEE
floating point values. The data format used is defined by a parameter of the
ETHERNET command. To exchange holding registers values as 16-bit
signed integers, execute the command ETHERNET(1,-1,7,0). This is the
default setting at power-up. To exchange holding registers values as 32-bit
IEEE floating point, execute the command ETHERNET(1,-1,7,1).
More information on the Modbus protocol and the communication messages
format can be found in the MODBUS APPLICATION PROTOCOL
SPECIFICATION document, which can be downloaded at http://
www.Modbus-IDA.org.
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
Note
The serial port (port 1) CANNOT be used for programming the unit.
BASIC command Description
HLM_COMMAND HLM_COMMAND executes a specific Host Link command to the
slave.
HLM_READ HLM_READ reads data from the Host Link slave to either VR or
TABLE memory.
HLM_STATUS HLM_STATUS gives the status of the last command of the Host Link
master.
HLM_TIMEOUT HLM_TIMEOUT defines the Host Link master timeout time.
HLM_WRITE HLM_WRITE writes data to the Host Link slave from either VR or
TABLE memory.
SETCOM SETCOM configures the serial communication port and enables the
Host Link protocols.