HNC-8 Numerical Control System Software. Maual of PLC Programming (V1.24) - page 6

 

  Index      Manuals     HNC-8 Numerical Control System Software. Maual of PLC Programming (V1.24)

 

Search            copyright infringement  

 

   

 

   

 

Content      ..     4      5      6      7     ..

 

 

 

HNC-8 Numerical Control System Software. Maual of PLC Programming (V1.24) - page 6

 

 

HNC-8-PLC Component specification
4. Basic function module
Example
When X32.1 is turned on, the temperature collection module starts to
count, and 10 temperature data is stored in the initial location given by
D1.
141
HNC-8-PLC Component specification
5. Status word and control word programming
Status
Word and Control Word
Programming
This chapter includes:
5.1 Introduction on Status Word and Control Word
5.2 Example of Status Word and Control Word Programming
142
HNC-8-PLC Component specification
5. Status word and control word programming
Introduction on Status Word and Control Word
Overview
The status word and control word are the most direct way of the interaction
between CNC and PLC. The status data of system can be obtained through the
status word, and you can write control word to change the system state. In the
system series 8, F represents status word with its property being read-only, G
represents control word with its property being read-write.
However, to limit the use of some key functions of system, some control words
are restricted, or are invisible to user. Please read following constraints of status
word and control word carefully.
Usage
restrictions
can be used
of
status
reserved for future extension
word and
control
cannot be used by user
word
Range of
Status words and control words can be divided into three types for each of its
application
function in the system. They all have serviceable range, refer to the configuration
manual for details.
‹
Status words and control words of axis
‹
Status words and control words of channel
‹
Status words and control words of system
Symbol
Take the words of channel as an example:
form
In this example, the format is channel 3, the second group of status word, and
143
HNC-8-PLC Component specification
5. Status word and control word programming
No.0 status word. 2560 is the offset of the channel status word. The format of
other types of words is similar.
144
HNC-8-PLC Component specification
5. Status word and control word programming
Axis Status Word
Overview
80 status words are configured for each axis. Each status word has a 16-bit byte.
The first row indicates the bits from 0 to 7, and the second row indicates the bits
from 8 to 15. The axis status words need to be used with the logical number
offset of axis.
Axis status
D7
D6
D5
D4
D3
D2
D1
D0
word
D15
D14
D13
D12
D11
D10
D9
D8
Return to
F0
Home
Return to
Subaxis
Subaxis
Subaxis
Home
the
Axis
completin
the first
follow
zero
home
failure
second
moving
g
reference
reference
Axis
The
Axis
The forth
The third
The first
Axis reset
Axis lock
parameter
second
overload
reference
reference
reference
ok
reference
Orientatio
F1
SPD
Spindle
n
Rapid
Spindle
PMC
Reserved
Reserved
arrival
stop
completin
feed
mode
enable
g
Index axis
Index
Index axis
Reserved
Reserved
Reserved
Reserved
Reserved
locking
position
unlocking
F2
Capture
Servo
Zero
Servo
2nd stage
Reserved
Reserved
Servo ready
the first Z
parameter
capture
home
home
pulse
Spindle
SPD
Gain
Z pulse
Torque
Speed
Position
Sv ready
stop
arrival
switch
capture
control
control
control
Servo
Servo
Normal
Reserved
Reserved
Reserved
Reserved
Reserved
prompt
alarm
servo
F3
Orientatio
n
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
completin
g
145
HNC-8-PLC Component specification
5. Status word and control word programming
Details
F0.0During the axis movement, when the axis is moving, the value is 1;
when the axis is not moving, the value is 0.
F0.1The first step of returning home: when the axis is returning home
without meeting home block, the value is 1; otherwise, the value is 0.
F0.2The second step of returning home: when Z pulse is being looked for,
the value is 1; otherwise, the value is 0.
F0.3Unsuccessful homing: when the axis hasn’t returned to zero, the value is
1; otherwise, the value is 0.
F0.4Successful homing: When the axis has been to zero, the value is 1;
otherwise, the value is 0.
F0.5Subaxis is returning home.
F0.6Zero point of subaxis has been checked.
F0.7Following status of subaxis has been released.
F0.8Comfirm the first reference: when the axis is at the first reference point,
the value is 1; otherwise, the value is 0.
F0.9Comfirm the second reference: when the axis is at the second reference
point, the value is 1; otherwise, the value is 0.
F0.10Comfirm the third reference: when the axis is at the third reference
point, the value is 1; otherwise, the value is 0.
F0.11Comfirm the forth reference: when the axis is at the forth reference
point, the value is 1; otherwise, the value is 0.
F0.13Axis parameter is effective.
F0.14Axis has been locked.
F0.15Axis has been repositioned.
F1.0PMC control enabled. When PMC control has been enabled, the value is
1; otherwise, the value is 0.
F1.1Feed spindle mode. 1 is position mode, and 0 is speed mode.
F1.5Orientation of feed spindle has been finished.
146
HNC-8-PLC Component specification
5. Status word and control word programming
F1.6Feed spindle is at zero speed.
F1.7Feed spindle speed arrival.
F1.13Index axis is unlocked. 1 indicates that system notifies PLC to unlock
index axis. The index axis is enabled.
F1.14Index axis is at index position.
F1.15Index axis is locked. 1 indicates that system notifies PLC to lock index
axis. The index axis is disabled.
F2.0When Z pulse is captured once during homing of axis, the value is 1;
otherwise, the value is 0.
F2.1When servo ready flag is 0, servo can receive incremental data.
F2.3Capture Z pulse of the second encoder, which is mainly used for homing
of distance code grating scale.
F2.4When servo has been back to zero, the output is 1.
F2.6Zero capture, which is mainly usded for spindle. When spindle meets the
first Z pulse at rotating time, set the value to 1. In the event of CS switching, the
value nees to be set to 1.
F2.7Servo parameter switch. 0: default parameter. 1: switch to the second set
of parameter.
F2.8When bus servo is ready, the value is 1; otherwise, the value is 0.
F2.9When servo is in position control mode, the value is 1; otherwise, the
value is 0.
F2.10When servo is in speed control mode, the value is 1; otherwise, the
value is 0.
F2.11When servo is in torque control mode, the value is 1; otherwise, the
value is 0.
F2.12When Z pulse is encountered, the value is 1; otherwise, the value is 0.
F2.13
F2.14When the spindle speed reaches, the value is 1, otherwise, the value is
0.
F2.15Spinde stop: when spindle stops, the value is 1; otherwise, the value is
0.
F3.0When servo is normal, the value is 1.
F3.1When servo alarms, the value is1.
F3.2When servo prompts, the value is 1.
F3.8Spindle orientation is completed After spindle orientation is set, spindle
starts directing. After the directing is completed, servo returns the signal of
completing spindle orientation, and the value is 1; otherwise, the value is 0.
F4Number of channel which the axis belongs to. (Channel number is in
decimal.)
F5Number of driven axises which are guided. (Number of driven axises is in
decimal.)
F[6/7]Real-time output command increment, motor coordinate.
147
HNC-8-PLC Component specification
5. Status word and control word programming
F[8/9/10/11]Real-time output command position, motor coordinate. (metric
system)
F[12/13/14/15]Output command pulse position, unit: pulse.
F[16/17]Command pulse per cycle. Number of command pulses which is
sent to servo each cycle.
F[18/19]Output command torque.
F[20/21/22/23]Actual feedback position of encoder 1. (metric system)
F[24/25/26/27]Actual feedback position of encoder 2. (metric system)
F[28/29/30/31]Command position of machine. (metric system)
F[32/33/34/35]Actual position of machine. (metric system)
F[36/37]Axis alarm
F36.2Plus software limit switch reached.
F36.3Minus software limit switch reached
F36.4Actual speed is overspeed.
F36.6Overspeed
F36.7Super acceleration.
F36.8Z pulse cannot be found.
F36.9Connection has been aborted.
F36.10Not referenced.
F36.11Sync position out-of-tolerance
F36.12Slave axis zero check is aborted
F36.13Sync speed out-of-tolerance
F37.0Plus software limit exceeded.
F37.2Minus software limit exceeded.
F37.2Acceleration does not match maximum speed.
F[38/39]Axis prompt
F38.0Max compensation ratio exceeded.
F38.1Max compensation exceeded.
F38.2Zero offset parameter is too small.
F38.4Software limit is too large.
F38.5The second software limit is too large.
F38.6Absolute encoder cycle digits are illegal.
F38.7Position overflow.
F38.8Target is outside plus software limit.
F38.9Target is outside minus software limit.
F38.10Mask angle of Z pulse needs to be adjusted.
F38.11Reference position needs to be adjusted.
F38.12Tracking error is too large.
F[70]Current axis mode.
148
HNC-8-PLC Component specification
5. Status word and control word programming
149
HNC-8-PLC Component specification
5. Status word and control word programming
Axis Control Word
80 control words are configured for each axis. Each control word has a16-bit
Overview
byte. The first row indicates the bits from 0 to 7, and the second row indicates
the bits from 8 to 15. The axis contorl words need to be used with the logical
number offset of axis.
Axis
control
word
D7
D6
D5
D4
D3
D2
D1
D0
G0
D15
D14
D13
D12
D11
D10
D9
D8
Axis
Axis lock
Home
Home
No axis
No axis
Negative
Positive
enable
block
start
motion in
motion in
limit
limit
negative
positive
direction
direction
Axis reset
Compens
Reserved
Reserved
Subaxis
Reserved
Reserved
Reserved
ation
follow
expansion
G1
*SP
*SP
*SP
*SP Jog
Expand
The
Relative
Absolute
rotation
rotation
orientatio
software
second
pmc
pmc
CCW
CW
n
limit
software
motion
motion
limit
Response
Response
Reserved
CS
Reserved
Reserved
Reserved
Reserved
locking
unlocking
response
G2
Servo
Reserved
Reserved
Reserved
Capture Z
Capture Z
Parameter
pulse of
Reserved
Reserved
pulse
encoder 2
Spindle
Directiona
Reserved
Spindle
Torque
Speed
Position
Servo
current-li
l
orientation
control
control
control
gain
miting
gear-shift
G3
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Servo
enable
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Details
150
HNC-8-PLC Component specification
5. Status word and control word programming
G0.0Positive limit switch of axis.
G0.1Negative limit switch of axis.
G0.2No axis movement in positive direction.
G0.3No axis movement in negative direction.
G0.4Set to start homing.
G0.5Set home block.
G0.6Set to lock the axis.
G0.7Set axis enable
G0.11Set to disable function of subaxis following
G0.14Compensation expansion
G0.15Single-axis reset
G1.0Absolute PMC axis motion is enabled.
G1.1Relative PMC axis motion is enabled.
G1.2The second software limit is enabled.
G1.3Extension software limit is enabled.
G1.4Feed-spindle Jog.
G1.5Feed-spindle orientation.
G1.6Feed -spindle rotates in clockwise direction.
G1.7Feed -spindle rotates in counter clockwise direction.
G1.12Response flag of PLC to spindle C/S switch.
G1.14Response flag of PLC to signal of unlocking index axis.
G1.15Response flag of PLC to signal of locking index axis.
G2.0Z pulse flag. (when motor is at the position of Z pulse, this flag is 1.)
G2.1Wait for zero pulse
G2.2Turn off function of searching zero pulse.
G2.3Capture zero pulse of the second encoder.
G2.7 Servo parameter switch. 0: Defaul parameter, 1: switch to the second
set of parameter.
G2.8Servo gain switch.
G2.9Switch to position control mode.
151
HNC-8-PLC Component specification
5. Status word and control word programming
G2.10Switch to speed control mode.
G2.11Switch to torque control mode.
G2.12Spindle orientation start.
G2.14Directional gear-shift of spindle.
G2.15Spindle current-limiting
G3.0Servo enable switch.
G4Axis jog flag. When the axis is manual, or returning to zero, or the spindle
is rotating, this flag is effective.
G5Increment flag of axis. When axis is moving incrementally, this flag is
effective.
G[6/7]Jog speed. 0: stop; 1: Jog speed in paramter; 2: Rapid traverse speed in
parameter; >2: Self-defined speed.
G8Incremental rate.
G9Handwheel rate.
G[10/11]handwheel pulse.
G[12/13/14/15]Axis feedback position, unit: pulse
G[16/17/18/19]Axis feedback position 2, unit: pulse
G[20/21] Actual speed of axis, unit: pulse. Actual axis-speed is the
incremental value per cycle of the actual feedback position of axis (G12-G15).
G[22/23]Actual speed 2 of axis
G[24/25]Actual torque of axis
G[26/27]Tracking error. (Tracking error of axis is the difference between the
actual axis feedback position
(G12-G15) and the axis command position
(F12-F15).)
G[28/29/30/31]Counter value of encoder 1
G[32/33/34/35]Counter value of encoder 2
G[36/37]Real-time compensation value.
G[38/39]Sample timestamp
G[40/41/42/43]Latch position 1 (when the first encoder has z pulse, the
current position is latched, which is used for G31 or distance code homing.
G[44/45/46/47]Latch position 1 (when the second encoder has z pulse, the
current position is latched, which is used for G31 or distance code homing.
152
HNC-8-PLC Component specification
5. Status word and control word programming
G[48/49/50/51]Target position of absolute movement for PMC axis.
G[52/53/54/55]Incremental movement of PMC axis
G[56/57]Servo alarm code.
G[58/59]Servo prompt code.
G60(2 is handwheel interruption, and 103 is PMC mode)
G61Override value of PMC axis.
G62.0PMC axis stop.
G62.1Zero handwheel interruption.
G62.2Turn on function of tangent following.
G62.4Index axis switch.
G62.5When coupling of driven axis is restored, synchronize the position of
synchronization axis.
G62.8Spindle control, write actual rotation speed to instruction.
G62.9Start spindle rotation speed of gear shift.
G64Current axis gear.
G66/67Gear shift of spindle.
G68/69Z pulse position.
G70/71Z pulse interval 1.
G72/73Z pulse interval 2.
G74Gear shift of spindle.
G78/79Sample data of servo
153
HNC-8-PLC Component specification
5. Status word and control word programming
Channel Status Word
Overview
80 control words are configured for each channel. Each control word has a 16-bit
byte. The first row indicates the bits from 0 to 7, and the second row indicates
the bits from 8 to 15. The axis contorl words need to be used with the logical
number offset of channel.
Axis status
D7
D6
D5
D4
D3
D2
D1
D0
word
D15
D14
D13
D12
D11
D10
D9
D8
User
Cycle
interventi
非自动时运动
Feedhold
Mode #3
Mode #2
Mode #1
Mode #0
start
F2560
on
Search Z
Suspend
Verify
Resetting
Rest flag
reserved
Cut thread
Cutting
pulse
request
state
Interrupti
Wait for
Interrupti
Procedure
Program
Program
reserved
reserved
on
comletion
on skip
complete
start
select
F2561
complete
Non-null
Non-null
reserved
reserved
reserved
reserved
reserved
reserved
completio
instructio
n
n
F2562
reserved
reserved
reserved
reserved
reserved
reserved
reserved
reserved
Spindle is
4S
3S
2S
1S
at
Index
Tool
instructio
instructio
instructio
instructio
constant
instructio
reserved
offset flag
n
n
n
n
linear
n
speed
Details
F2560.0 ~F2560.3To get mode
0: Reset mode
1: Auto mode
2: Manual mode
3: Increment mode
4: Handwheel mode
5: Home mode
6: PMC mode
7: Single block mode
8: MDI mode
154
HNC-8-PLC Component specification
5. Status word and control word programming
F2560.4Feedhold: channel is in state of feedhold.
F2560.5Cycle start:channel is in state of cycle start.
F2560.6Axis moves in non-auto mode.
F2560.7User movement is interfering.
F2560.8Cutting.
F2560.9Thread-cutting: channel is in state of cutting thread, and feedhold is
not allowed.
F2560.11Verify state.
F2560.12Channel reset: in the event of channel reset or reset button on panel
being pressed, channel reset is effective, until channel reset response is set.
F2560.13Suspend request.
F2560.14Channel is resetting.
F2560.15When axis is returning home to look for Z pulse, switching mode is
not allowed.
F2561.0Program is selected, which is set by interpreter.
F2561.1Program start, which is set by channel control.
F2561.2Program is completed, which is set by channel control.
F2561.3Interrupt instruction G28/G31 is completed.
F2561.4Skip interrupt instruction.
F2561.5Wait for completing instruction.
F2561.8There are non-empty instruction flags in channel.
F2561.9Non-empty instruction flag is completed in channel.
F2562.9Tool offset mark [tool offset number is in T instruction]
F2562.10PLC index instruction flag.
F2562.11Spindle is at constant linear speed.
F2562.12The first S instruction.
F2562.13The second S instruction.
F2562.14The third S instruction.
F2562.15The forth S instruction.
F2569Tool offset number, which is in T instruction.
155
HNC-8-PLC Component specification
5. Status word and control word programming
F[2570/2571The first S instruction. Unit: 0.001 revolution/minute.
F[2572/2573The second S instruction. Unit: 0.001 revolution/minute.
F[2574/2575The third S instruction. Unit: 0.001 revolution/minute.
F[2576/2577The forth S instruction. Unit: 0.001 revolution/minute.
F2578/79G31 number which is currently waiting signal.
F2580Currently running coordinate system.
F[2581/2589]Axis numbers of nine axises in channel
F[2590/2593]Axis number of the forth spindle in channel.
F[2594/2595]Alarm code of syntax error.
F[2596/2599]Channel alarm code.
F[2600/2603]Channel prompt number.
F[2604/2607]User output.
F[2608/2615]M codes which run in channel, with a maximum of 8.
F2616T instruction in channel. When T code is executing in channel, the
value of T code is in register; otherwise, the output is 1.
F2617B instruction in channel. B axis in boring machine is executed by PLC,
and indexing is executed by B instruction.
F2632Number of tool which is alarmed for the maximum life span being
reached.
F2636.0Channel is resetting.
F2632.1Program has been stopped exactly.
F2632.2Flag of inclined axis
F2632.3Interpolation instruction runs in channel.
F2632.4Flag of spindle synchronization.
F2632.5Handwheel feed direction.
F2637.0Subprogram process start.
F2637.1Subprogram waits for feedhold, and saves breakpoint.
F2637.2Break point flag.
F2637.3Start to load subprogram.
F2637.4Complete loading.
F2637.5Start running.
156
HNC-8-PLC Component specification
5. Status word and control word programming
F2637.6Complete running.
F2637.7Breakpoint has been restored.
F2637.8Process ends.
F2637.9Process error
F2637.10Process reset.
F2637.11Process waits for interpreter reset to complete.
F2638.0Tool life-span manage - cumulative times of tool changing
157
HNC-8-PLC Component specification
5. Status word and control word programming
Channel Control Word
Overview
80 control words are configured for each channel. Each control word has a 16-bit
byte. The first row indicates the bits from 0 to 7, and the second row indicates
the bits from 8 to 15. The axis contorl words need to be used with the logical
number offset of channe
Axis
D7
D6
D5
D4
D3
D2
D1
D0
control
D15
D14
D13
D12
D11
D10
D9
D8
word
Measure
ment
Cycle
Work
Work
Work
Work
Dry run
Feedhold
interrupti
start
mode
mode
mode
mode
G2560
on
Data
Clear
Emergenc
Panel
Reset
Data save
Reset
Verify
revovery
cache
y stop
reset
response
Data
Arbitrary
Explanati
Selection
Skip
Interpreter
Rerun
Rerun 2
G2561
recovery
row
on reset
stop
block flag
startup
Handwhe
Program
External
el
User
Explanati
Reserved
modificati
Reserved
interruptio
Reserved
interruptio
motion
on save
on
n
n
G2562
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Rotation
Reserved
Reserved
No
Speed
Reserved
Reserved
speed
MST lock
spindle
check
arrival
G2620
Panel
Handwhe
Home
Single
PMC
Increment
Manual
Auto
enable
el
reference
block
Rapid
Reserved
Reserved
Reserved
Reserved
Reserved
Incremental rate
traverse
Handwheel 1
Handwheel 0
G2621
Handwhe
Hanwheel 0 rate
Reserved
Reserved
Reserved
el 1
Hanwheel 1 rate
enable
158
HNC-8-PLC Component specification
5. Status word and control word programming
Axis 7+
Axis 6+
Axis 5+
Axis 4+
Axis 3+
Axis 2+
Axis 1+
Axis 0+
G2622
Axis 8+
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Axis 7-
Axis 6-
Axis 5-
Axis 4-
Axis 3-
Axis 2-
Axis 1-
Axis 0-
Axis 8-
G2623
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Details
G2560.0/1/2/3Work mode. 0: reset mode, 1: auto mode, 2: manual mode, 3:
increment mode, 4: handwheel mode.
G2560.4Feedhold: Set feedhold in channel.
G2560.5Cycle start: set cycle start in channel.
G2560.6Dry run: set to dry run in channel.
G2560.7Mearsure interruption flag. When this flag is set to 1, system
interrupts ongoing G31 instruction. It is used with G2582.
G2560.8Verify
G2560.9PLC reset response: when PLC has been reset, set this flag to 1.
G2560.10Panel reset flag. Through deteting this flag, PLC discover whether
the system is resetting.
G2560.11Emergency stop flag. This flag is set for emergency stop of
machine.
G2560.12Flag of channel buffering clear.
G2560.13This flag is set for resetting machine.
G2560.14Flag of channel data recovery.
G2560.15Channle data save.
G2561.0Flag of interpreter startup.
G2561.1Flag of the second step of program rerun.
G2561.2Flag of skipping block. When this flag is set to 1, system skips
block.
G2561.3Selection stop flag. When this flag is set to 1, system performs
159
HNC-8-PLC Component specification
5. Status word and control word programming
selection stop.
G2561.4Flag of interpreter reset.
G2561.5Flag of program rerun.
G2561.6Flag of MDI resetting to program header
G2561.7Flag of interpreter data recovery.
G2561.8Flag of interpreter data save.
G2561.9Exact-stop check.
G2561.10Flag of user motion control.
G2561.11Flag of external interruption.
G2561.12Turn on handwheel interruption.
G2561.14Flag of program modification.
G2561.15Coordinate of workpiece or tool changes, require to re-explain.
G2562.0S instruction response word of No.1 spindle.
G2562.1S instruction response word of No.2 spindle.
G2562.2S instruction response word of No.3 spindle.
G2562.3S instruction response word of No.4 spindle.
G2562.8Feed direction of trial cut by handwheel. 0 is moving forward, 1 is
retracting.
G2562.10Spindle speed check.
G2560.10Flag of panel reset. PLC discovers whether system is resetting by
detecting this flag.
G2560.11Emergency stop, to set channel of emergency stop.
G2562.11MST lock.
G2562.12Spindle is not started.
G2562.13Spindle speed doesn’t reach.
G2562.14Following start.
G2562.15Trial cut by handwheel. Use handwheel rate.
G2563T instruction.
G2564Feedrate override.
G2565Rapid traverse override.
160
HNC-8-PLC Component specification
5. Status word and control word programming
G2566/67/68/69Spindle overrise. Overrise of four spindles in channel.
G2570/71/72/73/74/75/76/77Spindle output instruction, output instructions
of four spindles in channel. After obtaining spindle rotation speed
(F2570-F2577), PLC calculates spindle override, and outputs spindle instruction.
In servo spindle, the output is spindle rotation, and in converter spindle, the
output is DA value.
G2578F2578.1 imaginery axis control.
G2579Machined-part counts
161
HNC-8-PLC Component specification
5. Status word and control word programming
G2580/81Mask in protected area.
G2582G31 number. When G31 execution is interrupted, the number of
interrupted G31.
G2584/85/86/87User bit input
G2588~2607User value input.
G2608~2615M code response of channel. When PLC is not executing M
code, set to -1; when PLC is executing M code, set to -2; when PLC has
executed M code, set to the currently executed M code.
G2616T code response of channel. When PLC has executed T code, set to
the currently executed T code; otherwise, set to -1.
G2617Tangent following of tool.
G2636.0Channel reset (PLC sets register, and notifies HMI to reset channel.)
G2636.3IRQ control
162
HNC-8-PLC Component specification
5. Status word and control word programming
G2636.4No channel resetReset button is invalid
G2636.5Life timing/counting pause.
G2560.15Channel data save
G2561.0Interpreter start.
G2637Subprogram calling start.
G2638Counting of tool changing.
G2970Flag of system activity channel.
G2978System activity control channel
G2980~2989Control word of handwheelprevious axis selection
G2990~2999Display output of handwheel.
G3010~3025External alarm of PLC (External alarm of PLC, and 8*32=256
external alarms exist concurrently).
G3040~3055External event of PLC (external event of PLC, and 8*32=256
external events exist concurrently).
G3056~3070External reminder of PLC (external reminder of PLC, and
8*32=256 external events exist concurrently).
G3080~3099Temperature sensor value.
163
HNC-8-PLC Component specification
5. Status word and control word programming
Example of Status Word and Control Word
Programming
Work Pattern Setting
Example
Ladder
diagram
Function
Set the status in the working pattern of channel. When the axis is in the position
control mode, set the working pattern of the current channel to auto, single block,
manual, increment, handwheel or home.
164
HNC-8-PLC Component specification
5. Status word and control word programming
Work Pattern Getting
Example
Ladder
diagram
Function
Get the status in the working pattern of channel, which can be auto, single block,
manual, increment, handwheel or home.
165
HNC-8-PLC Component specification
5. Status word and control word programming
Control of Feed Axis and Spindle
Example
Ladder
diagram
Function
It is used to control the movement of feed axis, and the spindle rotation. Set the
current channel mode to manual mode, if you press Axis selection, and positive
or negative movement button, the moving status of the current axis will be set,
thus the axis will move; if you press spindle rotation (CW or CCW) button, the
rotation direction of the spindle will be set.
166
HNC-8-PLC Component specification
5. Status word and control word programming
Home
Example
Ladder
diagram
Function
Obtain whether the current channel is returning home, through the status register.
During the process of meeting the home block, which is the first home process,
switching to other statuses is allowed; During the process of researching Z pulse,
which is the second home process, switching to other statuses is not allowed.
167
HNC-8-PLC Component specification
5. Status word and control word programming
Incremental Rate Override
Example
Ladder
diagram
Function
Incremental rate consumes two bits. 00 represents x1, 01 represents x10, 10
represents x100, and 11 represents x1000. The axis movement is controlled by
the setting of above axis register.
168
HNC-8-PLC Component specification
5. Status word and control word programming
Cycle Start and Feed Hold
Example
Ladder
diagram
Function
When the working pattern of channel is auto or single block, and is not at cycle
start, set to cycle start. Set to feed hold under the status of cycle start. If the
setting is successful, the system will be at the state of feed hold.
169
HNC-8-PLC Component specification
6. Extended function module
Extension Function Module
This chapter includes:
6.1 NC Function
6.2 Functional Unit of Axis
6.3 System Function
170
HNC-8-PLC Component specification
6. Extended function module
NC Function
Channel Mode Setting MDST
Format
Paramet
Parameter
Data
Storage
Properti
Explanation
er
form
type
area
es
<Addres
INT
Constant
Channel No.
s 1>
Pre
Constant, F,
<Addres
Work mode
Post ×
INT
G, R, W, D,
s 2>
value
P, B
Function
Set the work mode of the current channel (Auto, Single-block, Manual,
Increment, Reference home, Handwheel, PMC)
Parameter
Refere
Work mode
Single-
Manu
Incre
Hand
Auto
nce
PMC
Parameter
block
al
ment
wheel
home
D2□□□
1
2
4
8
16
32
64
Supplemen
If one of channel state is axis homing, switching mode will not be allowed.
tary note
171

 

 

 

 

 

 

 

Content      ..     4      5      6      7     ..