9. EasyPort USB command interpreter
Command
Response
DC<n>.<m>
C<n>.<m>=xxxx
Reading out the counter value
9.9
Example:
establishing a connection
to the EasyPort USB
© Festo Didactic GmbH & Co. KG „ 721876
Description
Reading out counter values
The counter value of the high-speed counter number <m>
(<m> =0, 1) is read out for the EasyPort USB module with
address <n> (<n> = 1...4).
The counter value is read out as a hexadecimal number xxxx.
Example
DC1.0<CR> C1.0=2AC5<CR>
The counter value for counter 0 at the EasyPort USB module
with address 1 is read out. The counter value is 2AC5
hexadecimal, or 10949 decimal.
Connection to the EasyPort USB can be established using a terminal
program, and commands can be transmitted and received via the serial
port.
Terminal programs require the following information:
Which serial port will be used for communication?
Which settings are necessary for the port?
For this reason, the following steps must be executed in order to
establish a connection to the EasyPort USB:
1. Connect the EasyPort USB to the PC, as well as to the power supply.
2. Determine which serial port is used for the USB connection.
3. Start the terminal program.
4. Enter the settings for the serial port.
5. Transmit commands to the EasyPort.
The Windows terminal program HyperTerminal is used as a
representative example of how a connection is established.
159