EasyManua.ls Logo

Omron TJ1-MC04 - PROGRAMMING 1

Omron TJ1-MC04 - PROGRAMMING 1
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC commands
PROGRAMMING MANUAL 138
Revision 3.0
/i
3.2.242 SET_BIT
/i
3.2.243 SETCOM
/i
/i
/i
Value Description
500 0.5ms
1000 1.0ms
2000 2.0ms
Caution
When the parameter has been set, a power down or software reset
(using EX) must be performed for the complete system. Not doing
so may result in undefined behaviour.
Type System command
Syntax SET_BIT(bit_number, vr_number)
Description The SET_BIT command sets the specified bit in the specified VR variable to
one. Other bits in the variable will keep their values.
Arguments bit_number
The number of the bit to be set. Range: [0,23].
vr_number
The number of the VR variable for which the bit is set. Range: [0,1023].
Example No example.
See also CLEAR_BIT, READ_BIT, VR.
Type Communication command
Syntax SETCOM(baud_rate, data_bits, stop_bits, parity, port_number, mode)
Description The SETCOM command sets the serial communications for the serial ports.
The command will enable the Host Link protocols or define the general-pur-
pose communication.
The serial ports have 9,600 baud, 7 data bits, 2 stop bits, even parity and
XON/XOFF enabled for general-purpose communication by default. These
default settings are recovered at start-up.
Arguments baud_rate
1200, 2400,4800, 9600,19200, 38400
data_bits
7, 8
stop_bits
1, 2
parity
0 = None; 1 = Odd; 2 = Even.
port_number
See the first table below.
mode
Select one of the modes listed in the second table below for serial ports 1
and 2.
Example No example.
See also N/A
port_number value Description
1 RS-232C serial port 1
2 RS-422A/485 serial port 2
Mode Description
0 General-purpose communication (no XON/XOFF mechanism)
I52E-EN-03.book Seite 138 Freitag, 29. Juni 2007 11:55 11

Table of Contents

Related product manuals