Set_Bit; Setcom - Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual

Hide thumbs Also See for TJ1-MC04 - PROGRAMMING 1:
Table of Contents

Advertisement

BASIC commands
/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.

3.2.242 SET_BIT

/i
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.
PROGRAMMING MANUAL

3.2.243 SETCOM

/i
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
/i
port_number value
1
2
/i
Mode
Description
0
General-purpose communication (no XON/XOFF mechanism)
Description
RS-232C serial port 1
RS-422A/485 serial port 2
138

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents