BASIC commands
pc_area value
Data area
PLC_HR
HR area
(or value 3)
PLC_AR
AR area
(or value 4)
PLC_EM
EM area
(or value 6)
/i
mc_area value
MC_TABLE
(or value 8)
MC_VR
(or value 9)
3.2.144 HLS_NODE
/i
Type
Communication parameter
Syntax
HLS_NODE
Description
The HLS_NODE parameter defines the Slave unit number for the Host Link
Slave protocol. The TJ1-MC__ will only respond to Host Link Master com-
mand strings with the unit number as specified in this parameter. The valid
range for this parameter is [0, 31]. The default value is 0.
Arguments
N/A
Example
No example.
See also
N/A
PROGRAMMING MANUAL
Host link command
RH
RJ
RE
Data area
Table variable array
Global (VR) variable array
3.2.145 HW_PSWITCH
/i
Type
Axis command
Syntax
HW_PSWITCH(mode, direction, opstate, table_start, table_end)
Description
The HW_PSWITCH command turns on the OUT 0 output for the axis when
the predefined axis measured position is reached, and turns the output off
when another measured position is reached. Positions are defined as
sequence in the TABLE memory in range from table_start, to table_end, and
on execution of the HW_PSWITCH command are stored in FIFO queue.
This command is applicable only to Flexible axis axes with ATYPE values 43,
44 and 45.
The command can be used with either or 5 parameters. Only 1 parameter is
needed to disable the switch or clear FIFO queue. All five parameters are
needed to enable switch.
After loading FIFO and going through the sequence of positions in FIFO, if the
same sequence has to be executed again, FIFO must be cleared before exe-
cuting HW_PSWITCH command with the same parameters.
Arguments
•
mode
0 = disable switch; 1 = on and load FIFO; 2 = clear FIFO.
•
direction
0 = decreasing; 1 = increasing.
•
opstate
Output state to set in the first position in the FIFO; on or off.
•
table_start
Starting Table address of the sequence.
•
table_end
Ending Table address of the sequence.
Example
HW_PSWITCH(1, 1, ON, 21, 50)
This command will load FIFO with 30 positions, stored in TABLE memory
starting from TABLE(21) in increasing direction. When the position stored in
TABLE(21) is reached, the OUT 0 output will be set on and then alternatively
off and on on reaching following positions in the sequence, until the position
stored in TABLE(50) reached.
Example
HW_PSWITCH(0)
This command will disable switch if it was enabled previously, but will not clear
the FIFO queue.
95
Need help?
Do you have a question about the TJ1-MC04 - PROGRAMMING 1 and is the answer not in the manual?
Questions and answers