BASIC commands
PROGRAMMING MANUAL 95
Revision 3.0
/i
3.2.144 HLS_NODE
/i
3.2.145 HW_PSWITCH
/i
PLC_HR
(or value 3)
HR area RH
PLC_AR
(or value 4)
AR area RJ
PLC_EM
(or value 6)
EM area RE
mc_area value Data area
MC_TABLE
(or value 8)
Table variable array
MC_VR
(or value 9)
Global (VR) variable array
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
pc_area value Data area Host link command
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.
I52E-EN-03.book Seite 95 Freitag, 29. Juni 2007 11:55 11