ICP DAS USA | tM-7521 - Addressable Serial to Ethernet Converter | User manual | ICP DAS USA tM-7521 - Addressable Serial to Ethernet Converter User Manual

ICP DAS USA tM-7521         - Addressable Serial to Ethernet Converter User Manual
tM-752N Series
User Manual
Warranty
All products manufactured by ICP DAS are warranted against defective materials for
a period of one year from the date of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for damages consequent to the use of this product. ICP
DAS reserves the right to change this manual at any time without notice. The
information furnished by ICP DAS is believed to be accurate and reliable. However,
no responsibility is assumed by ICP DAS for its use, nor for any infringements of
patents or other rights of third parties resulting from its use.
Copyright
Copyright © 2011 by ICP DAS. All rights are reserved.
Trademark
Names are used for identification only and may be registered trademarks of their
respective companies.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
1
Table of Contents
PACKING LIST ................................................................................................................................................ 4
MORE INFORMATION ................................................................................................................................. 4
1.
INTRODUCTION ................................................................................................................................ 5
1.1
ADDRESSABLE RS-232 CONVERTER .............................................................................................. 6
1.2
RESPONSES FROM RS-232 DEVICES CAN BE ADDRESSABLE........................................................ 6
1.3
ONBOARD 1KB QUEUE BUFFER ...................................................................................................... 7
1.4
WHY WEB SERVER TECHNOLOGY?.................................................................................................. 7
2.
HARDWARE INFORMATION ...................................................................................................... 8
2.1
SPECIFICATIONS .............................................................................................................................. 8
2.2
FEATURES ......................................................................................................................................... 9
2.3
SELECTION GUIDE ........................................................................................................................... 9
2.4
TM-752N
2.5
DIMENSIONS ................................................................................................................................... 12
2.6
PIN ASSIGNMENTS .......................................................................................................................... 13
2.6.1
tM-7521 Pin Assignments............................................................................................... 13
2.6.2
tM-7522 Pin Assignments............................................................................................... 14
2.7
3.
FRONT VIEW ................................................................................................................ 10
WIRING NOTES .............................................................................................................................. 15
2.7.1
RS-232 Wiring Connections ........................................................................................... 15
2.7.2
RS-485 Wiring Connections ........................................................................................... 16
SETTING UP THE TM-752N .......................................................................................................... 17
STEP 1: CONNECTING THE POWER AND HOST PC...................................................................................... 17
STEP 2: RUN THE ESEARCH UTILITY ............................................................................................................ 20
STEP 3: SEARCH FOR THE TM-752N MODULE ............................................................................................ 20
STEP 4: CONFIGURE THE NETWORK SETTINGS ............................................................................................ 21
STEP 5: TESTING YOUR TM-752N............................................................................................................... 22
4.
WEB CONFIGURATION................................................................................................................... 23
4.1
LOGGING ON TO THE TM-752N WEB SERVER .......................................................................... 23
4.2
HOME PAGE ..................................................................................................................................... 25
4.3
NETWORK SETTING ....................................................................................................................... 26
4.3.1
Network and Miscellaneous Settings .......................................................................... 26
tM-752N Series module User Manual, Version 1.0, Nov. 2011
2
4.3.2
IP Address Selection......................................................................................................... 26
4.3.3
General Configuration Settings .................................................................................... 29
4.3.4
Restore Factory Defaults................................................................................................. 30
4.4
SERIAL PORT SETTINGS ................................................................................................................ 31
4.4.1
5.
Port1 Settings ..................................................................................................................... 31
4.5
CHANGE PASSWORD ...................................................................................................................... 33
4.6
LOGOUT .......................................................................................................................................... 33
COMMAND SETS ................................................................................................................................. 34
5.1
6.
COMMAND SETS TABLE ................................................................................................................. 34
5.1.1
$AAA[addr]........................................................................................................................... 35
5.1.2
$AABN[baud rate] ............................................................................................................. 37
5.1.3
$AADN[data-bit]................................................................................................................. 39
5.1.4
$AAPN[parity-bit] .............................................................................................................. 41
5.1.5
$AAON[stop-bit]................................................................................................................. 43
5.1.6
$AA6[ID] ............................................................................................................................... 45
5.1.7
$AA7 ....................................................................................................................................... 47
5.1.8
$AAC[delimiter].................................................................................................................. 49
5.1.9
[delimiter]AA[bypass]...................................................................................................... 51
5.1.10
$AAKV .................................................................................................................................... 52
5.1.11
$AATN[CrLfmode].............................................................................................................. 54
5.1.12
$AAM....................................................................................................................................... 56
5.1.13
$AAU ....................................................................................................................................... 58
5.1.14
$AAJN[timeout] .................................................................................................................. 60
5.1.15
$AAEV..................................................................................................................................... 62
TYPICAL APPLICATIONS .............................................................................................................. 64
6.1
APPLICATION 1 .............................................................................................................................. 64
6.2
APPLICATION 2 .............................................................................................................................. 65
6.3
APPLICATION 3 .............................................................................................................................. 66
tM-752N Series module User Manual, Version 1.0, Nov. 2011
3
Packing List
The shipping package includes the following items:
One tM-752N series hardware module
One printed Quick Start Guide
One DC Connector Power cable
Quick start
Note!!
If any of these items are missing or damaged, please contact the local
distributor for more information. Save the shipping materials and cartons in
case you want to ship the module in the future.
More Information
Documentation
http://ftp.icpdas.com/pub/cd/tinymodules/napdos/tM-752N /document/
Firmware
http://ftp.icpdas.com/pub/cd/tinymodules/napdos/tM-752N/firmware/
tM-752N Series module User Manual, Version 1.0, Nov. 2011
4
1. Introduction
Nowadays, a great number of RS-232 devices for both automation and information
transfer are being used in industrial applications, and linking these devices is very
important in the modern situation. The devices are usually located at a distance from
the Host PC, meaning that linking via multiple serial cards is inefficient. ICPDAS tM752N series products have been developed to provide an effective link between
multiple RS-232 devices via a single RS-485 network. This network protocol offers
stability, reliability and simple cabling while delivering a low–cost, easy-to-maintain
product.
To achieve maximum space savings, the tM-752N is offered in an amazingly small
form-factor that enables it to be easily installed anywhere, even directly attached to a
serial device or embedded into a machine. The tM-752N features a powerful 32-bit
MCU that allows it to efficiently handle network traffic. The tM-752N offers true IEEE
802.3af-compliant (classification, Class 1) Power-over-Ethernet (PoE) functionality
using a standard category 5 Ethernet cable that allows it to receive power from a PoE
switch such as the NS-205PSE. If there is no PoE switch available on site, the tM752N can accepts power input from a DC adapter.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
5
1.1 Addressable RS-232 Converter
Most RS-232 devices don’t support individual device addressing. To overcome this
limitation, ICPDAS tM-752N series modules assign a unique address to any RS-232
device installed on an RS-485 network. When the Host PC sends a command to the
RS-485 network a device address can be attached to the command. The destination
tM-752N module will then remove the address field and pass the remaining
commands to the destination RS-232 device. Responses from the local RS-232
devices will be returned to the Host PC via the tM-752N module.
1.2 Responses from RS-232 devices can be
addressable
ICPDAS tM-752N series modules can prefix a response from an RS-232 device with
a unique address and then pass the response to the RS-485 network. The Host PC
can then identify which RS-232 device the response comes from.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
6
1.3 Onboard 1KB Queue Buffer
tM-752N series modules are equipped with a 1KB queue buffer for its local serial port.
All input data can be stored in the queue buffer until the Host PC has time to read it.
These features allow the Host PC to be linked to thousands of RS-232 devices
without any loss of data.
1.4 Why Web Server Technology?
Web server technology enables configuration of the tM-752N via a standard web
browser interface, e.g. Internet Explorer, Firefox or Mozilla, etc. This means that it is
easy to check the configuration of the tM-752N via an Ethernet network without
needing to install any other software tools, thereby reducing the user’s learning curve.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
7
2.
Hardware Information
2.1
Specifications
Model
tM-7521
tM-7522
System
CPU
32-bit MCU
Communication Interface
Ethernet
10/100 Base-TX, 8-pin RJ-45 x 1,
(Auto-negotiating, Auto-MDI/MDIX, LED indicator)
PoE (IEEE 802.3af, Class 1)
COM1
2-wire RS-485
2-wire RS-485
COM2
5-wire RS-232
3-wire RS-232
COM3
-
3-wire RS-232
Yes, automatic RS-485 direction control
UART
16c550 or compatible
COM Port Format
Baud Rate
115200 bps Max.
Data Bit
5, 6, 7, 8
Parity
None, Odd, Even, Mark, Space
Stop Bit
1, 2
General
Power Input
PoE: IEEE 802.3af, Class 1
DC jack: +12 ~ 48 VDC
Power Consumption
0.05 A @ 24 V DC
Connector
10-Pin Removable Terminal Block x 1
Mounting
DIN-Rail
Flammability
Fire Retardant Materials (UL94-V0 Level)
Operating
Temperature
-25° ~ 75°C
Storage Temperature
-30° ~ 80°C
Humidity
10 ~ 90% RH, non-condensing
tM-752N Series module User Manual, Version 1.0, Nov. 2011
8
2.2
Features
Built-in “Addressable RS-232 Converter” firmware
Contains a 32-bit MCU that efficiently handles efficient network traffic
10/100 Base-TX Ethernet, RJ-45 x1
(Auto-negotiating, auto MDI/MDIX, LED Indicators)
Includes redundant power inputs: PoE (IEEE 802.3af, Class 1) and DC jack
Allows automatic RS-485 direction control
Supports UDP responder for device discovery
Allows easy firmware update via the Ethernet
Tiny Built-in Web server for easy configuration
Male DB-9 or terminal block connector for easy wiring
Tiny form-factor and low power consumption
RoHS compliant with no Halogen
Made from high-grade fire retardant materials (UL94-V0 Level)
Cost-effective
2.3
Model
Selection Guide
CPU
tM-7521
32-bit MCU
tM-7522
Ethernet
10/100 Base-TX,
PoE
Baud Rate
115200 bps
COM1
COM2
COM3
2-wire
RS-485
5-wire
RS-232
-
2-wire
RS-485
3-wire
RS-232
3-wire
RS-232
3-Wire RS-232: RxD, TxD, GND (Non-isolated)
5-Wire RS-232: RxD, TxD, CTS, RTS, GND (No-isolated)
2-Wire RS-485: DATA+, DATA-, GND (Non-isolated)
tM-752N Series module User Manual, Version 1.0, Nov. 2011
9
2.4
tM-752N Front View
Serial COM Ports
5
Robust insulated and
fire retardant case
1
PoE and Ethernet
RJ-45 Jack
1
3
S1: System LED
indicator
4
Operating Mode
Switch
2
+12~+48 VDC Jack
PoE and Ethernet RJ-45 Jack:
The tM-752N is equipped with a RJ-45 jack that is
used as the 10/100 Base-TX Ethernet port and
features networking capability. When an Ethernet
link is detected and an Ethernet packet is received,
the Link/Act LED (Orange) indicator will be
illuminated. When power is supplied via PoE
(Power-over-Ethernet), the PoE LED (Green)
indicator will be illuminated.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
10
2
+12~+48 VDC Jack:
The tM-752N is equipped with a +12~+48 VDC jack that is
used as the power supply. If there is no PoE switch
available on site, the tM-752N will accept power input from a
DC adapter.
3
S1: System LED indicator:
Once power is supplied to the tM-752N, the system LED indicator will be
illuminated as follows:
4
Function
System LED Behavior
Running Firmware
ON
Network ready
Flashing per 3 seconds
Serial Port Busy
Flashing per 0.2 seconds
Operating Mode Switch:
Init Mode: Configuration mode
Run Mode: Firmware operation mode
In the tM-752N series, the operating mode Switch is in the Run position by
default. When updating the tM-752N firmware, the switch needs to be moved
from the Run position to the Init position. The Switch must be returned to the
Run position after the update is complete.
5
Serial COM Ports:
The numbers of serial COM Ports depend on the types of tM-752N modules. For
more detailed information regarding the pin assignments of the Serial COM ports,
please refer to Section 2.6 “Pin Assignments”.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
11
2.5
Dimensions
tM-7521/tM-7522 Dimensions:
Units: mm
Front View
Rear View
Top View
Left Side View
Right Side View
tM-752N Series module User Manual, Version 1.0, Nov. 2011
Bottom View
12
2.6
Pin Assignments
2.6.1
tM-7521 Pin Assignments
1-Port 2-Wire RS-485 and 1-Port 5-Wire RS-232 Module
tM-752N Series module User Manual, Version 1.0, Nov. 2011
13
2.6.2
tM-7522 Pin Assignments
1-Port 2-Wire RS-485 and 2-Port 3-Wire RS-232 Module
tM-752N Series module User Manual, Version 1.0, Nov. 2011
14
2.7
Wiring Notes
2.7.1
RS-232 Wiring Connections
5-wire RS-232 Connection (DB-9)
3-wire RS-232 Connection
(Shorts unused signals RTS/CTS)
Note!!
1. For 3-Wire RS-232 connections, it is recommended that unused signals such
as RTS/CTS and DTR/DSR are shorted, since some systems may still check
the status of CTS and DSR.
2. FGND is the frame ground that provides a path to earth ground for ESD
protection.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
15
2.7.2
RS-485 Wiring Connections
2-wire RS-485 Wiring
Note!!
For non-isolated RS-422/485 ports, you should connect all signal grounds of
RS-422/485 devices together. This reduces the common-mode voltage between
devices.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
16
3. Setting up the tM-752N
Step 1: Connecting the power and Host PC
※ Prepare for device: NS-205PSE or NS-205 (optional) 、I-7520 module (optional)
1.
Check Init/Run switch is on “Run”
position.
2.
Connect both the tM-752N and your computer to the same sub network or
the same Ethernet Switch, and power the tM-752N on. Make sure the
System LED indicator is flashing.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
17
3.
Perform a test wiring check as follows:
Wiring to RS-232
Device
Wiring to host PC
Via the RS-485 bus
tM-752N Series module User Manual, Version 1.0, Nov. 2011
18
Connect the tM-752N module to the RS-485 network as follows:
Connecting to a Single Remote RS-232 Device as follows:
Connecting to a Multiple Remote RS-232 Devices as follows:
tM-752N Series module User Manual, Version 1.0, Nov. 2011
19
Step 2: Run the eSearch Utility
The eSearch Utility can be obtained from our FTP site:
http://ftp.icpdas.com/pub/cd/tinymodules/napdos/software/esearch/
Double-click the eSearch.exe.
Step 3: Search for the tM-752N module
Click the “Search Servers” button to search for your tM-752N module.
Click
tM-752N Series module User Manual, Version 1.0, Nov. 2011
20
Step 4: Configure the network settings
1. tM-752N series modules are IP-based devices that may not be suitable for
your network using a default IP address. Therefore, you must first assign a new
IP address to the tM-752N module depending on your network settings.
The factory default IP settings are as
follows:
Item
IP Address
Subnet Mask
Gateway
Default
192.168.255.1
255.255.0.0
192.168.0.1
Double-Click
2. Contact your Network Administrator to obtain the correct network
configuration information such as IP/Mask/Gateway. Enter the network settings
and then click “OK”. The tM-752N will use the new settings within 2 seconds.
Assign a new
IP address
tM-752N Series module User Manual, Version 1.0, Nov. 2011
21
Step 5: Testing your tM-752N
1.
Execute your hyper terminal program or our “Terminal.exe”.
The Terminal.exe can be obtained from our FTP site:
http://ftp.icpdas.com/pub/cd/tinymodules/napdos/software/
2.
Check that the configuration of the COM Port is correct and then click the
“Open COM” button.
Double
-Click
Click
3.
Type a string in the send field then click the “Send” button. If a response is
received, it will be displayed in the received field.
Click
Responded Message
Note: For more detailed information regarding the command sets, please
refer to Section 5 “Command Sets”.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
22
4. Web Configuration
The tM-752N module can be configured via serial port (refer to ch5)
ch5 and also can be
configured via web browser after its network is setting and functioning correctly.
4.1 Logging on to the tM-752N Web server
You can log onto the tM-752N web server from any computer that has Internet
access.
Step 1: Open a browser
Mozilla Firefox, Google Chrome and Internet Explorer,
for example are reliable and popular internet browsers
that can be used to configure tM-752N modules.
Step 2: Type the URL address of the tM-752N
Make sure you have correctly configured the network settings for the tM752N, or refer to Section 3 “Setting up the tM-752N”.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
23
Step 3: Enter the Password
After entering the IP address, the login dialog page will be displayed. Enter the
password, and then click the “Submit” button to enter the configuration web
page.
The factory default password is:
Item
Default
Login password
admin
Step 4: Welcome to tM-752N web server
After logging onto the tM-752N web server, the main page will appear.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
24
4.2
Home Page
The Home link connects to the main page, which contains two parts.
The first part of this page provides basic information about the tM-752N
hardware and software.
The second part of this page provides the status of the port settings.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
25
4.3 Network Setting
4.3.1
Network and Miscellaneous Settings
Check the model name and the software information.
The software information includes the following items:
Firmware Version, Model Name, IP Address, Initial Switch, MAC Address,
and System Timeout.
After updating the tM-752N firmware, you can check the version information on
this page.
4.3.2
IP Address Selection
The Address Type, Static IP Address, Subnet Mask and Default Gateway items
are the most important network settings and should always correspond to the LAN
definition. If they do not match, the tM-752N module will not operate correctly. If the
settings are changed while the module is operating, any links to Virtual COM Port
based applications currently in use will be lost and an error will occur.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
26
Item Descriptions:
Item
Description
Static IP: If you don’t have a DHCP server in your network,
you can configure the network settings manually. Please
refer to the Section “4.3.2.1 Manually Configuration”
Address Type
DHCP/AutoIP: Dynamic Host Configuration Protocol
(DHCP) is a network application protocol that automatically
assigns an IP address to each device. Please refer to
Section 4.3.2.2 “Dynamic Configuration”
Static IP Address
Each tM-752N on the network must have a unique IP
address. This item used to assign specific IP address.
Subnet Mask
The Subnet Mask indicates which portion of the IP address
is used to identify the local network or subnet.
Default Gateway
A gateway (or router) is a system that is used to connect an
individual network with one or more additional networks.
MAC Address
The User-defined MAC address.
Update Settings
Click this button to save the new settings to the tM-752N.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
27
Network settings can be configured using either dynamic configuration or manual
configuration, as per the following instructions:
4.3.2.1
Manual Configuration
When using manual configuration, you have to assign all the network settings in the
following manner:
Step 1: Select “Static IP” as the address type
Step 2: Enter the appropriate network settings
Step 3: Click the “Update Settings” button to finish the configuration
4.3.2.2
Dynamic Configuration
Dynamic configuration is very easy to perform. If you have a DHCP server, the
network address can be dynamically configured in the following manner:
Step 1: Select “DHCP/AutoIP” as the address type
Step 2: Click the “Update Settings” button to finish the configuration
tM-752N Series module User Manual, Version 1.0, Nov. 2011
28
4.3.3
General Configuration Settings
The General Configuration Settings provides functions allowing items such as the
Alias Name, System Timeout value, and Auto-logout value to be configured.
Item Descriptions:
Item
Description
Default
System Address
A Net ID for tM-752N series module
0
Enable Checksum
Add a checksum in the last field of message
0 = Disable (default); 1 = Enable
0
Enable Response
Prefix
Add the prefix code in front of response message
0
Alias Name
System Timeout
(Network Watchdog)
Each tM-752N can be allocated a unique Alias
name so that it can be identified the network.
If no communication occurs for a certain period in
serial port, the system will be rebooted based on
the configured system timeout value.
Tiny
300
Settings range: 30 ~ 65535 (seconds);
Disabled = 0;
If there is no action for a certain period in the web
server, user account will be logout.
Web Auto-logout
10
Settings range: 1 ~ 65535 (minutes);
Disable = 0;
Update Settings
Click this button to save the new settings to the tM-752N.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
29
4.3.4
Restore Factory Defaults
To reset the settings to their factory defaults, follow these steps:
Step 1: Click the “Restore Defaults” button to reset the configuration.
Step 2: Click the “OK” button in the message dialog box.
Step 3: Check whether the tM-752N is reset to factory default settings for use
with the eSearch.exe. Refer to Section 3 “Setting up the tM-752N”.
Default Settings:
Item
Factory Default Settings
IP
192.168.255.1
Gateway
192.168.0.1
Mask
255.255.0.0
tM-752N Series module User Manual, Version 1.0, Nov. 2011
30
4.4 Serial Port Settings
4.4.1
Port1 Settings
Check the tM-752N hardware and software information.
The port settings provide the following functions:
These are 5 modes in ending-chars pattern.
Mode 0: 0x0D ; Mode 1: 0x0D,0x0A ; Mode 2: 0x0A,0x0D ; Mode 3: 0x0A ;
Mode 4: No Ending-Chars; Mode 5: User-defined (Byte count, Chars)
tM-752N Series module User Manual, Version 1.0, Nov. 2011
31
Item Descriptions:
Item
Description
Default
Baud Rate (bps)
Sets the Baud Rate for the COM ports.
115200
Data Size (bits)
Sets the Data Size for the COM ports.
8
Parity
Sets the Parity for the COM ports.
Stop Bits (bits)
Sets the Stop Bits for the COM ports.
Flow Control
Sets the Flow Control for the COM ports.
Serial Ending
Chars
None
1
None
The tM-752N can determine the end of the data
immediately after the ending-chars pattern is
identified from the incoming serial data.
There are some different modes can be used:
Mode 0
0x0D (CR)
Mode 1
0x0D+0x0A (CR+LF)
Mode 2
0x0A+0x0D (LF+CR)
Mode 3
0x0A (LF)
Mode 4
None (Disabled)
Mode 5
User-Defined
(Note: Mode 5 can only set in web configuration)
4
The number of User-defined ending-char can be
1~2 chars. For example:
Delimiter
Port ID
Response Timeout
1 char: 1,0x0D;
2 chars: 2,0x0D,0x0A
This is a special symbol, placed in the front of
command/response message, can be used to
identify the legality of message.
The Port ID can be used to identify each RS-232
port; the value is the increasing value of System ID
For Port 1 (RS-485) in end character mode is “4” (it
means that No end character), wait for this timeout
to elapse without receiving any further data in order
to determine the end of the command.
:
0
1000
For Port 2 and 3 (RS-232), wait for this timeout to
elapse without receiving any data.
Continue
Response Timeout
Only used for Port 2 and 3 (RS-232) in end
character mode is “4” (it means that No end
character),
If the time between receiving a new character and
last one is smaller this timeout, this character can be
seem as part of a response.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
0
32
4.5 Change Password
Item Descriptions:
Item
Description
Current password
Enter the old password (default is admin)
New password
Enter the new password
Confirm new password
Enter the new password again
Submit
Click this button to save the new settings to the tM752N.
4.6 Logout
Click the “Logout” tag to log out from the system and return to the login page.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
33
5. Command Sets
5.1 Command sets table
Note: “AA” means the system address.
Section
Command
Response
Description
5.1.1
$AAA[addr]
!AA
Read/Set the System Address
5.1.2
$AABN[baud rate]
!AA[baud rate]
5.1.3
$AADN[data-bit]
!AA[data-bit]
Read/Set the Data Bit for COM-1/2/3
5.1.4
$AAPN[parity-bit]
!AA[parity-bit]
Read/Set the Parity Bit for COM-1/2/3
5.1.5
$AAON[stop-bit]
!AA[stop-bit]
Read/Set the Stop Bit for COM-1/2/3
5.1.6
$AA6[ID]
!AA
Set the ID-string for COM-2/3
5.1.7
$AA7
!AA[ID]
Read the ID-string for COM-2/3
5.1.8
$AAC[delimiter]
!AA[delimiter]
Read/Set the delimiter for COM-2/3
5.1.9
(delimiter)AA(bypass)
Depend on
Bypass the data string to COM-2/3
5.1.10
$AAKV
Read/Set the Baud Rate for COM1/2/3
device
!AA[checksum]
Read/Set the checksum status of
COM1 (RS485)
Read/Set the end char which is used
5.1.11
$AATN[CrLfmode]
!AA[CrLfmode]
to judge the end of
command/response for COM1/2/3
5.1.12
$AAM
!AA[name]
5.1.13
$AAU
[data]
Read the module name
Read data from the RS-232 COM port
buffer.
Reads/Sets the delay time before
5.1.14
$AAJN
!AA[timeout]
determining whether the end of a
Command/response has been
sent/received
5.1.15
$AAEV
!AA(status)
Read/Set prefixed address status on
the response
tM-752N Series module User Manual, Version 1.0, Nov. 2011
34
5.1.1
$AAA[addr]
Description:
This function reads/sets the system address.
Syntax:
$AAA[chk](CrLf)
Reads the system address stored in the Flash
$AAA[addr][chk](CrLf)
Sets the system address
[Request]
Byte 1
Byte 2-3
Byte 4
AA
$
$
AA
[chk]
(CrLf)
A
Byte 5-6
Byte 7-8
Byte 9-10
Note
[chk]
(CrLf)
-
Read
[addr]
[chk]
(CrLf)
Write
Delimiter character
2-character system address in Hex format. The valid range is from 00~FF
2-character checksum. If the checksum is disabled  no [chk]
End Character
[Response]
Byte 1
Byte 2-3
!
AA
?
!
?
AA
[chk]
(CrLf)
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Note
Valid
Invalid
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character system address in Hex format
2-character checksum. If the checksum is disabled
End Character
If No response
no [chk]
syntax error, communication error, or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
35
Example:
e.g. Command
1
2
3
$01A02(CrLf)
Response
!01(CrLf)
The system Address 01 is changed to 02.
$02AA0(CrLf)
!02(CrLf)
The system address 02 is changed to A0.
$A0A(CrLf)
!A0(CrLf)
The system address is A0.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
36
5.1.2
$AABN[baud rate]
Description:
This function reads/sets the Baud Rate for COM 1/2/3.
Syntax:
Reads the Baud Rate for COM 1/2/3 stored in the Flash
$AABN[chk](CrLf)
$AABN[baud rate][chk](CrLf) Sets the Baud rate for COM 1/2/3
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
$
AA
B
N
$
AA
N
[baud rate]
[chk]
(CrLf)
Byte 6-7
Byte 8-9
Byte 10-11
Note
[chk]
(CrLf)
-
Read
[baud rate]
[chk]
(CrLf)
Write
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = Read/Set the Baud Rate for the COM 1
1 = Read/Set the Baud Rate for the COM 2/3
Valid values are 1200/2400/4800/9600/19200/38400/57600/115200
2-character checksum. If the checksum is disabled  no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4-6
Byte 7-8
Byte 9-10
Note
!
AA
[baud rate]
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
!
AA
?
!
?
AA
[baud rate]
[chk]
(CrLf)
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Note
Valid
Invalid
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
Valid values are 1200/2400/4800/9600/19200/38400/57600/115200
2-character checksum. If the checksum is disabled no [chk]
End Character
If No response
syntax error, communication error, or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
37
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
3
$01B19600(CrLf)
Response
!01(CrLf)
Changes the COM2 (RS-232) Baud Rate to 9600 bps.
$02B138400(CrLf)
!02(CrLf)
Changes the COM3 (RS-232) Baud Rate to 38400 bps.
$01B0(CrLf)
!0157600(CrLf)
Read the COM1 (RS-485) Baud Rate.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
38
5.1.3
$AADN[data-bit]
Description:
This function reads/sets the data bit for COM 1/2/3.
Syntax:
$AADN[chk](CrLf)
Reads the data bit for COM 1/2/3 stored in the Flash
$AADN[data-bit][chk](CrLf)
Sets the data bit for COM 1/2/3
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
$
AA
D
N
$
AA
N
[data-bit]
[chk]:
(CrLf):
Byte 6-7
Byte 8-9
Byte 10-11
Note
[chk]
(CrLf)
-
Read
[data-bit]
[chk]
(CrLf)
Write
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = Reads/Sets the data bit for the COM 1
1 = Reads/Sets the data bit for the COM 2/3
Valid values are 5/6/7/8
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[data-bit]
[chk]
(CrLf)
Read
Byte 1
!
?
!
?
AA
[chk]
(CrLf)
If no response
Byte 2-3
AA
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
Note
Valid
Invalid
no [chk]
 syntax error, communication error, or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
39
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
3
$01D08(CrLf)
Response
!01(CrLf)
Changes the data bit to 8 for the COM1 (RS-485)
$01D17(CrLf)
!01(CrLf)
Changes the data bit to 7 for the COM2 (RS-232)
$02D17(CrLf)
!02(CrLf)
Changes the data bit to 7 for the COM3 (RS-232)
tM-752N Series module User Manual, Version 1.0, Nov. 2011
40
5.1.4
$AAPN[parity-bit]
Description:
This function reads/sets the parity bit for COM 1/2/3.
Syntax:
$AAPN[chk](CrLf)
Reads the parity bit for COM 1/2/3 stored in the Flash
$AAPN[parity-bit][chk](CrLf)
Sets the parity bit for COM 1/2/3
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
P
N
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6
Byte 7-8
Byte 9-10
Note
$
AA
P
N
[parity-bit]
[chk]
(CrLf)
Write
[parity-bit]
[chk]
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = Reads/Sets the parity bit for the COM 1
1 = Reads/Sets the parity bit for the COM 2/3
0=NONE, 1=EVEN, 2=ODD, 3=MARK, 4=SPACE
2-character checksum. If the checksum is disabled
no [chk]
(CrLf)
End Character
$
AA
N
tM-752N Series module User Manual, Version 1.0, Nov. 2011
41
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[parity-bit]
[chk]
(CrLf)
Read
Byte 4-5
Byte 6-7
Byte 8-9
[chk]
(CrLf)
-
Byte 1
Byte 2-3
!
AA
?
!
?
AA
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
If No response
Note
Valid
Invalid
no [chk]
syntax error, communication error, or address error
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
3
$01P00(CrLf)
Response
!01(CrLf)
Changes parity-bit to NONE for COM1 (RS-485)
$01P10(CrLf)
!01(CrLf)
Changes parity-bit to NONE for COM2 (RS-232)
$02P11(CrLf)
!02(CrLf)
Changes parity-bit to EVEN for COM3 (RS-232)
tM-752N Series module User Manual, Version 1.0, Nov. 2011
42
5.1.5
$AAON[stop-bit]
Description:
This function reads/sets the stop bit for COM 1/2/3.
Syntax:
$AAON[chk](CrLf)
Reads the stop bit of COM 3 stored in the Flash
$AAON[stop-bit][chk](CrLf)
Sets the stop bit for COM 3
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
O
N
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6
Byte 7-8
Byte 9-10
Note
$
AA
O
N
[stop-bit]
[chk]
(CrLf)
Write
$
AA
N
[stop-bit]
[chk]
(CrLf)
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = Reads/Sets the stop bit for the COM 1
1 = Reads/Sets the stop bit for the COM 2/3
Valid values are 1/2
2-character checksum. If the checksum is disabled
no [chk]
End Character
tM-752N Series module User Manual, Version 1.0, Nov. 2011
43
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[stop-bit]
[chk]
(CrLf)
Read
Byte 4-5
Byte 6-7
Byte 8-9
[chk]
(CrLf)
-
Byte 1
Byte 2-3
!
AA
?
!
?
AA
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating ad invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
If no response
Note
Valid
Invalid
no [chk]
syntax error, communication error, or address error
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
$01O12(CrLf)
Response
!02(CrLf)
Changes the stop bit to 2 for the COM2 (RS-232)
$02O12(CrLf)
!03(CrLf)
Changes the stop bit to 2 of the COM3 (RS-232)
tM-752N Series module User Manual, Version 1.0, Nov. 2011
44
5.1.6
$AA6[ID]
Description:
This function sets the ID string for COM 2/3.
Max-number of characters = 15.
Syntax:
Sets the ID string for COM 2/3
$AA6[ID][chk](CrLf)
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5-12
Byte 13-14
Byte 15-16
$
AA
6
[ID]
[chk]
(CrLf)
Delimiter character
2-character port address in the Hex format. The valid range is from 00~FF
ID string, (Max-number of character is 15)
2-character checksum. If the checksum is disabled
no [chk]
End Character
$
AA
[ID]
[chk]
(CrLf)
[Response]
Byte 1
Byte 2-3
!
AA
?
Byte 4-5
Byte 6-7
[chk]
(CrLf)
!
Delimiter character indicating a valid command
?
AA
[chk]
(CrLf)
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
If no response
Note
Valid
Invalid
no [chk]
syntax error, communication error, or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
45
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
$016Temperature1(CrLf)
Response
!01(CrLf)
The ID for the COM2 (RS-232) is Temperature1
$026HP34401A-1(CrLf)
!02(CrLf)
The ID for the COM3 (RS-232) is HP34401A-1
tM-752N Series module User Manual, Version 1.0, Nov. 2011
46
5.1.7
$AA7
Description:
This function reads the ID string for COM 2/3.
Syntax:
Reads the ID string for COM 2/3
$AA7[chk](CrLf)
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
$
AA
7
[chk]
(CrLf)
$
AA
[chk]
(CrLf)
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4-10
Byte 11-12
Byte 13-14
Note
!
AA
[ID]
[chk]
(CrLf)
Read
Byte 1
?
!
?
AA
(ID)
[chk]
(CrLf)
If no response
Byte 2-3
AA
Byte 4-5
Byte 6-7
Note
[chk]
(CrLf)
Invalid
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
ID string. Maximum number of characters=15
2-character checksum. If the checksum is disabled
End Character
no [chk]
syntax error, communication error, or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
47
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
$017(CrLf)
Response
!01Temperature1(CrLf)
The ID for the RS-232 (COM2) is Temperature1
$027(CrLf)
!02HP34401A-1(CrLf)
The ID for the RS-232 (COM3) is HP34401A-1
tM-752N Series module User Manual, Version 1.0, Nov. 2011
48
5.1.8
$AAC[delimiter]
Description:
This reads/sets the delimiter for COM 2/3.
Syntax:
$AAC[chk](CrLf)
Reads the delimiter for COM 2/3 stored in the Flash
$AAC[delimiter][chk](CrLf)
Sets the delimiter for COM 2/3
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
$
AA
C
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
C
[delimiter]
[chk]
(CrLf)
Write
$
AA
[delimiter]
[chk]
(CrLf)
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
Default delimiter is :
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[delimiter]
[chk]
(CrLf)
Read
Byte 1
!
?
!
?
AA
[chk]
(CrLf)
If no response
Byte 2-3
AA
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Note
Valid
Invalid
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
no [chk]
syntax error, communication error ,or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
49
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
$01C(CrLf)
Response
!01:(CrLf)
Reads the delimiter for the COM2 (RS-232)
$02C*(CrLf)
!02:(CrLf)
Changes the delimiter for the COM3 (RS-232)
Notes:
(1) The delimiter of COM 2/3 can be different.
(2) The default delimiter is “ : ”
(3) The delimiter cannot be “ $ ”, “ ~ ”, “ # ”, “ @ ”, “ % ”, “ CR & LF ”
tM-752N Series module User Manual, Version 1.0, Nov. 2011
50
5.1.9
[delimiter]AA[bypass]
Description:
This function bypasses the data string to COM 2/3.
Syntax:
(delimiter)AA(pass)[chk](CrLf)
Bypasses the data string to COM 2/3
[Request]
Byte 1
Byte 2-3
Byte 4 - n
Byte (n+1) - (n+2)
Byte (n+3) - (n+4)
(delimiter)
AA
(bypass)
[chk]
(CrLf)
AA
(bypass)
[chk]
(CrLf)
2-character port address in Hex format. The valid range is from 00~FF
The data string sent to COM 2/3
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
The response received will depend on the device used.
Example:
(Assume the AA address value of the tM-752N module is 01. The delimiters
for COM2/3 are “:” and “*”, respectively)
e.g. Command
1
2
Response
:01abcde(CrLf)
Depends on the device
Send abcde to COM2
*02test(CrLf)
Depends on the device
Send test to COM3
tM-752N Series module User Manual, Version 1.0, Nov. 2011
51
5.1.10 $AAKV
Description:
This function reads/sets the checksum status.
Syntax:
$AAK[chk](CrLf)
Reads the checksum status stored in the Flash
$AAKV[chk](CrLf)
Sets the checksum status
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
$
AA
K
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
K
[V]
[chk]
(CrLf)
Write
$
AA
K
[chk]
(CrLf)
Delimiter character
2-character module address in Hex format. The valid range is from 00~FF
0 = checksum disabled
1 = checksum enabled
2-character checksum. If the checksum is disabled
no [chk]
End Character
tM-752N Series module User Manual, Version 1.0, Nov. 2011
52
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[K]
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
!
AA
?
!
?
AA
K
[chk]
(CrLf)
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character module address in Hex format
0 = checksum disabled
1 = checksum enabled
2-character checksum. If the checksum is disabled
End Character
If no response:
Note
Valid
Invalid
no [chk]
syntax error, communication error, or address error
Example:
(Assume the first AA address value of the tM-752N module is 01)
e.g. Command
1
2
$01K000(CrLf)
Response
!0182(CrLf)
Disables the checksum chk: 00,82
$01K1(CrLf)
!01(CrLf)
The checksum is enabled
Notes:
The checksum enable/disable function is valid for COM1, since the checksum
is used in communication between tm-752N and host PC. Not for serial
devices!
tM-752N Series module User Manual, Version 1.0, Nov. 2011
53
5.1.11 $AATN[CrLfmode]
Description:
This function reads/sets what the characters are as judging the end of command or
response string.
Syntax:
$AATN[chk](CrLf)
Reads the setting value of CrLfmode stored in the
Flash
$AATN(CrLfmode)[chk](CrLf)
Sets the setting value of CrLfmode for the
command/response string
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
T
N
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6
Byte 7-8
Byte 9-10
Note
$
AA
T
N
[CrLfmode]
[chk]
(CrLf)
Write
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = Reads/Sets the CrLfmode value of the COM 1
1 = Reads/Sets the CrLfmode value of the COM 2/3
(CrLfmode) 0 = (CrLf)=0x0D (CR)
1 = (CrLf)=0x0D+0x0A (CR+LF)
2 = (CrLf)=0x0A+0x0D (LF+CR)
3 = (CrLf)=0x0A (LF)
4 = No end character
[chk]
2-character checksum. If the checksum is disabled no [chk]
(CrLf)
End Character
$
AA
N
tM-752N Series module User Manual, Version 1.0, Nov. 2011
54
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[CrLfmode]
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
!
AA
?
!
?
AA
[chk]
(CrLf)
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
If No response
Note
Valid
Invalid
no [chk]
syntax error, communication error, or address error
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
3
Response
$01T0(CrLf)
!014(CrLf)
The end char for COM1 is no end character
$01T1(CrLf)
!011(CrLf)
The end char for COM2 is 0x0D+0x0A
$02T1(CrLf)
!022(CrLf)
The end char for COM3 is 0x0A
Notes:
The default CrLfmode = 4
ie.the default (CrLf)=NONE for all port.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
55
5.1.12 $AAM
Description:
This function reads the module name.
Syntax:
Reads the module name
$AAM[chk](CrLf)
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
$
AA
M
[chk]
(CrLf)
Read
$
AA
[chk]
(CrLf)
Delimiter character
2-character Hex module address, The valid range is from 00~FF
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4-6
Byte 7-8
Byte 9-10
Note
!
AA
(name)
[chk]
(CrLf)
Read
Byte 1
?
!
?
AA
(name)
[chk]
(CrLf)
If no response
Byte 2-3
AA
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Note
Invalid
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character Hex module address
4 or 5-character value/string denoting the module name
2-character checksum. If the checksum is disabled
no [chk]
End Character
syntax error, communication error, or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
56
Example:
e.g. Command
1
2
$01M(CrLf)
Response
!017521(CrLf)
The name of module 01 is 7521
$02M(CrLf)
!027522(CrLf)
The name of module 02 is 7522
tM-752N Series module User Manual, Version 1.0, Nov. 2011
57
5.1.13 $AAU
Description:
This function reads data from the RS-232 COM port buffer. There is 1Kb queue
buffer for its local RS-232 device. All input data from RS-232 COM port can be
stored in the queue buffer until the Host PC has time to read it. These features
allow the Host PC to be linked to thousands of RS-232 devices without any loss of
data. Any RS-232 device should obey the rules of the request-reply protocol. In
other words, RS-232 devices are passive. If they do not receive any commands,
they will not send any messages out. However, since active devices are frequently
developed, ICPDAS controllers are designed with a buffer to receive these
messages in situations such as this. Buffer operation rules:
Rule 1: The buffer is enabled after being powered-on.
Rule 2: The (delimiter) AA command disables the buffer operation for that port
Rule 3: After disabling the buffer, the controller will wait for X seconds (=Response
timeout,) for a response from the RS-232 device. The response will then be
transferred to COM1. If no message is received, the buffer will be re-enabled.
Syntax:
Reads data from the RS-232 COM port buffer
$AAU[chk](CrLf)
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
$
AA
U
[chk]
(CrLf)
Read
$
AA
[chk]
(CrLf)
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
2-character checksum. If the checksum is disabled
no [chk]
End Character
tM-752N Series module User Manual, Version 1.0, Nov. 2011
58
[Response]
Byte 1 – n
Byte (n+1) – (n+2)
Byte (n+3) – (n+4)
Note
!
AA
(name)
Read
Byte 1
Byte 2-3
AA
?
!
?
AA
[chk]
(CrLf)
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
If no response
address error
Note
Invalid
no [chk]
The buffer is empty, syntax error or communication error, or
Example:
e.g. Command
Response
$01U(CrLf)
data1(CrLf)
1
2
3
Retrieves “data1” from the buffer of the port that is addressed 01
$01U(CrLf)
data2
Retrieves another data: “data2” from the buffer of the port that is addressed 01
$02U(CrLf)
No data in the buffer of the port that is addressed 02
tM-752N Series module User Manual, Version 1.0, Nov. 2011
59
5.1.14 $AAJN[timeout]
Description:
The function reads/sets the delay time before determining whether the end of a
Command/response has been sent and received.
Syntax:
$AAJN [chk] (CrLf)
Reads the timeout value
$AAJN[timeout] [chk] (CrLf)
Sets the timeout value
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
J
N
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6 - n
$
AA
J
N
[timeout]
$
AA
N
[timeout]
[chk]
(CrLf)
Byte (n+1) -
Byte (n+3) -
(n+2)
(n+4)
[chk]
(CrLf)
Note
Write
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = COM 1 timeout
1 = COM 2/3 Response timeout
2 = COM 2/3 Continuous response timeout
Delay time value (ms). Valid range is 0 to 4294967259.
2-character checksum. If the checksum is disabled
no [chk]
End Character
tM-752N Series module User Manual, Version 1.0, Nov. 2011
60
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[timeout]
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
!
AA
?
!
?
AA
[chk]
(CrLf)
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
End Character
If no response
Note
Valid
Invalid
no [chk]
buffer is empty, syntax error, communication error, address error
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
1
2
3
Response
$01J01000(CrLf)
!01(CrLf)
Sets the timeout value for the COM1 (RS-485) to 1000ms
$01J11500(CrLf)
!01(CrLf)
Sets the timeout value of the COM2 (RS-232) to 1500ms
$01J1(CrLf)
!011500(CrLf)
Reads the Response timeout value of COM2
The Response timeout value of COM2 is 1500ms.
Notes:
The default Response timeout value for all RS-232 COM ports is 1000 ms.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
61
5.1.15 $AAEV
Description:
This function reads/sets the status of the prefixed address byte on the response,
which lets the host know RS-232 device the response comes from.
Syntax:
Reads the status of the prefixed address byte on
the response
$AAEV [chk] (CrLf)
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Note
$
AA
E
V
[chk]
(CrLf)
Read
$
AA
V
[chk]
(CrLf)
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = Prefixed address byte disabled
1 = Prefixed address byte enabled
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[V]
[chk]
(CrLf)
Read
Byte 1
!
?
!
?
AA
V
[chk]
(CrLf)
If no response
Byte 2-3
AA
Byte 4-5
Byte 6-7
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
0 = Prefixed address byte disabled
1 = Prefixed address byte enabled
2-character checksum. If the checksum is disabled
End Character
Note
Valid
Invalid
no [chk]
syntax error, communication error, or address error
tM-752N Series module User Manual, Version 1.0, Nov. 2011
62
Example:
(Assume the AA address value of the tM-752N module is 01)
e.g. Command
Response
$01E(CrLf)
!010(CrLf)
1
2
Reads the status of the prefixed address byte for COM1.
The prefixed address byte is disabled.
$01E1(CrLf)
!01(CrLf)
Sets the status of the prefixed address byte to enable.
Notes:
If the prefixed address byte is enabled, the response for [delimiter]AA[bypass
data] and $AAU will be prefixed with !AA.
Example 1: [delimiter]AA[bypass data]
Command: 01TEST(Cr)
Bypass: TEST(Cr)
tM-752N
Device
Data: ABCD(Cr)
Response: !01ABCD(Cr)
Example 2: $AAU
Command: $01U(Cr)
tM-752N
Data: ABCD(Cr)
Device
Response: !01ABCD(Cr)
tM-752N Series module User Manual, Version 1.0, Nov. 2011
63
6. Typical Applications
6.1
Application 1
Addressable RS-232 Controller (Command Type)
Each tM-752N module has a unique address.
The Host PC first sends a command to all tM-752N module.
The destination tM-752N module will pass the command to its local RS-232
device.
The destination tM-7522 module will then send the response from the RS-232
device back to the Host PC.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
64
6.2
Application 2
Addressable RS-232 Controller (Receive Data only Type)-Barcode
Reader
The barcode-reader can scan a barcode at anytime, and the tM-752N module
will store these barcodes in an internal buffer (1 K bytes).
The Host PC first sends $AAU command to each tM-752N modules one-by-one.
The destination tM-752N module will check its internal buffer. If there are any
barcodes in the buffer, the tM-752N module will then send a single barcode back
to the Host PC.
tM-752N Series module User Manual, Version 1.0, Nov. 2011
65
6.3
Application 3
Addressable RS-232 Controller (Dual-channel)
Each tM-7522 module has a unique address
Each tM-7522 module can support two RS-232 devices, AA and AA+1.
The Host PC first sends a command to each tM-7522 modules one-by-one.
The destination tM-752N module will pass the command to its local RS-232
device 1 or RS-232 device 2.
The tM-752N module then sends the response from the RS-232 device back to
the Host PC.
The RS-232 device can be used for command (Application 1) or null command
(Application 2) type controller applications.
ICP DAS Web Site: http://www.icpdas.com
Contact Us (E-Mail): service@icpdas.com, service.icpdas@gmail.com
Copyright @ 2011 by ICP DAS Co., Ltd. All Rights Reserved.
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising