Host Computer System.pdf - 第135页

AVK3 HOST COMPUTER SYSTEM 5.4 I nserti ng Execution Pr ogram int o NC Dat a D77HEC-50- 430-A0 5.4- 2  Protocol Star t of inserti on Host com puter Requests dat a. AVK3 C4AL A 0 Sends updated dat a. D 1 B loc k No. NC da…

100%1 / 174
AVK3
HOST COMPUTER SYSTEM
5.4 Inserting Execution Program into NC Data
D77HEC-50-430-A0
5.4-1
5.4. Inserting Execution Program into NC Data
D77HEC-50-430-A0
5.4.1 Inserting Execution Program into NC Data
If the host computer gives C4 command to AVK3, the NC data can be inserted by one block lot into the NC
program registered in the AVK3.
Insertion into the NC data of the execution program ends with A2 command sent from the host computer.
Data details
NC data by one block lot can be inserted by giving D1 command from the host computer after the A0
command (data request) has been sent from the AVK3.
With sending of insertion data by one block lot from the host computer, the updated data from the AVK3 is
returned in D1 command.
If the updated data is returned from the AVK3, the data of the next block lot can be inserted.
Host computer AVK3
No. Data name
Max.
digits
Input range Omit
Vari-
able
Remarks
1 Block No. 4 0001 to 2000
×
If designated more than the
filled block+1, it becomes an
error.
Insert it one block before
designated block.
2 NC data
The omitted data becomes the
same data as in the previous
block.
G data becomes an error except
0.
AVK3 Host computer
No. Data name
Max.
digits
Input range
Sup-
press
Fix Remarks
1 Block No. 4 0001 to 2000
×
Sends the designated block.
2 NC data
×
Sends the same format as in
the upload of NC data.
=REMARKS=
The data condition is the same as in the upload of NC data.
== As for how to insert, refer toExample of NC data insertion’.
Pay attention in the order of insertion if designating the same block No.
STX
D 1 N x
No. of
characters
1
x x
ETXCheck sum
NC data
2
STX
C 4 I N
No. of
characters
ETX
Check sum
AVK3
HOST COMPUTER SYSTEM
5.4 Inserting Execution Program into NC Data
D77HEC-50-430-A0
5.4-2
Protocol
Start of insertion
Host computer
Requests data.
AVK3
C4AL
A 0
Sends updated data.
D 1 Block No. NC data
D 1 Block No.
A2
NC data
Transfers inserted
data.
AVK3
HOST COMPUTER SYSTEM
5.4 Inserting Execution Program into NC Data
D77HEC-50-430-A0
5.4-3
Example of NC data insertion
<NC data in AVK3>
NC data before insertion NC data after insertion
N001 d1d1……
N002 d2d2……
N003 d3d3……
N004 d4d4……
N005 d5d5……
N006 d6d6……
N007 d7d7……
N001 d1d1……
N002 (1) data
N003 d2d2……
N004 d3d3……
N005 (2) data
N006 (3) data
N007 d4d4……
N008 d5d5……
N009 d6d6……
Condition
Can be used in optional specification.
Valid in ONLINE mode only.
If execution program is not selected, ‘A4E00’ is returned.
Can be inserted as often as possible until ‘A2’ is received.
If received during operation, ‘A4E00’ is returned.
Start of insertion
Host computer
Sends insertion result.
AVK3
C4IN
A 0
Sends insertion result.
A2
Inserted data
D 1 N002 (1) data
D 1 N002 (1) data
D 1 N004 (2) data
D 1 N005 (2) data
D 1 N004 (3) data
D 1 N006 (3) data
Inserted data
Inserted data
Insertion end
Sends insertion result.