Host Computer System.pdf - 第20页

AVK3 HOST COMPUTER SYSTEM 1.3 Command Descri pti on D77HEC-51- 030-A 0 1.3- 3 Ex. ) Data resending sequence As shown i n Data Resending Sequenc e, if A1 c o mm and is ret urned fr o m A VK3, the host comput er side cont …

100%1 / 174
AVK3
HOST COMPUTER SYSTEM
1.3 Command Description
D77HEC-51-030-A 0
1.3-2
From above contents, A command becomes the following configuration.
Applicable code
0: Framing error 3: Check sum error
1: Overrun error 4: Overflow error
2: Parity error 5: Format error
Even if AVK3 receives error codes E00 - E05, it has no means of expressing it, and does not process them.
Therefore, when the host computer sends the A1 command to AVK3, only A1 is sufficient, and there is no
need to add E00 - E05. (It does not matter if they are added.)
However, from AVK3 to host computer, E00 - E05 data is always added and sent. The host computer is then
able to determine the type of error using that data.
The data resending sequence is as shown in Ex.) and this sequence is exactly the same of whatever data is
being sent.
When AVK3 operation thereafter is continued. If resending is not successful, try to prevent the host
computer from sending the A1 command twice.
As a result, AVK3 discontinues the receiving mode by time out processing, and prepares for the next
conversation.
At the time of resending data, the reason the A1 command is not resent is that it is meaningless to resend it
again.
When A1 command is returned at this time, AVK3 becomes re-resending mode.
If an A1 command is returned from AVK3, the host computer should control the number of A1 commands,
and after resending data only once, discontinue resending.
STX
A 1
ETX
Check sum
E 0 *
No. of
characters
0 5
AVK3
HOST COMPUTER SYSTEM
1.3 Command Description
D77HEC-51-030-A 0
1.3-3
Ex.) Data resending sequence
As shown in Data Resending Sequence, if A1 command is returned from AVK3, the host computer
side controls the number of A1 commands, and after resending data only once, discontinues
resending.
As a result, in AVK3, message sending mode is discontinued by time out processing.
Data transmission end command (A2)
This is the command showing that the conversation between the host computer and AVK3 has been
completed without any trouble. By this A2 command, AVK3 discontinues the conversation mode.
No requested data command (A3)
Though C1 command is sent to AVK3 requesting NC data to be sent, if the name of the program
cannot be found, this command is used.
In the place of D command in the above figure, just by judging that there is no data for 1 block, do not
use A3 command to say there is no data.
Host computer
Start
C1 Program name
Compares program
name and if not
matched with AVK3’s.
If OK
Continues
A3
A2
AVK3
End
A0
D0 1 block of data
C1 command resent
Although A1 command
may be resent, the
received data is
not re-resent.
Host computer
Start
C1 Program name
Parity error occurs.
A1E02 is returned.
If OK, operation
Continues.
If error again in
receiveng, sends A1
command again.
AVK3
The first block NC data is sent.
A1
E02
C1 Program name
A1
E02
Direction of A1 command
Continuous
movement
Host computer
controls number of
A1 commands.
AVK3
unconditionally
resends by A1.
A1
A1
AVK3
HOST COMPUTER SYSTEM
1.3 Command Description
D77HEC-51-030-A 0
1.3-4
No received data command (A4)
This command is generated if any abnormality has occurred in sequence of command, or if AVK3 has
received commands when not in the condition to receive commands. In this case, AVK3 invalidates the
received data.
A4 command has the following 2 items.
Operation error
The machine has received C command in modes other than ONLINE.
However, C2 command is effective in cases other than ONLINE. Besides, if there are abnormalities in
command code, or command has been sent after time-out processing, this command is sent.
Protocol error
Another command has been received while sending data.
Applicable code
0: Operation error 1: Protocol error
1.3.3 Data Command (D0)
Used at the time of sending data in the NC program transmission mode and in the monitoring mode.
== For the data part format of D0 command, refer to ‘C0 command’, ‘C4 command’, and ‘C2
command’.
1.3.4 D Command (D1)
Used at the time of sending data in the inquiry and change mode (C3) of the program name, and the
updated mode (C4) of the AVK3 NC data.
== For the data part format of D1 command, refer to ‘C3 command’ and ‘C4 command’.
STX
D 0
No. of
characters
ETX
Check sum Data
STX
D 1
No. of
characters
ETX
Check sum Data
STX
A 1
ETX
Check sum
E 0 *
No. of
characters
0 5