HOST.pdf - 第32页

BM 122/ 123 /1 33/ 221/2 31 HOST COMPUTER SYSTEM 3. 3 C comm ands E35HEC- 4A-181- B0 3.3- 1 1 3.3. 6 C2ST Command ( M achin e Status) Thi s comm and is opti onal. Item Descri p ti on Comm and name Acqui ri ng machine sta…

100%1 / 64
BM122/123/133/221/231
HOST COMPUTER SYSTEM
3.3 C commands
E35HEC-4A-181-B0
3.3-10
3.3.5 C1RP Command (Program List)
Item Description
Command name Program list
COM port used Port 1
Data format
Item Description
Command field C1RP
Data size field 0
Data field None
Command sequence
Host computer system Equipment
C1RP (1)
(2) D0 + Program list
A0 (Requests the next data) (1) End
(1) A2 (Data transfer end)
(1) No data type (2) Data-attached type
Program list is sent in the following format.
Data registered or revised yy/mm/dd
Ex.: January 09, 2000 00/01/09
Program name Pxxx...xxx (Fixed at
15 characters)
Program names less than 15 characters will be padded with spaces.
Ex.: D0 command
Command D0
Data size
81 (No. of characters from the beginning of data to [CR][LF])
Data 03/01/30PABC [CR][LF]
03/02/01PDEF [CR][LF]
03/02/02PGHI [CR][LF]
[CR][LF]
Terminator 0
Terminator 0
Terminator 0
BM122/123/133/221/231
HOST COMPUTER SYSTEM
3.3 C commands
E35HEC-4A-181-B0
3.3-11
3.3.6 C2ST Command (Machine Status)
This command is optional.
Item Description
Command name Acquiring machine status
COM port used Port 1
Data format
Item Description
Command field C2ST
Data size field 0
Data field None
Command sequence
Host computer system Equipment
C2ST (1)
(2) D1 + Machine status
A2 (Data transfer end) (1) End
(1) No data type (2) Data-attached type
Machine status:
Status Information
Run Machine running in the AUTO mode (Including the time waiting for boards)
Ready
Normal stop (neither Run nor Error)
From when the RESET key is pressed due to an error (except for safety stop) until
when the Run status is restored. (Or until when a safety stop is engaged).
From when an error (a safety stop) is cleared until when the Run status is restored.
From when the machine stops due to a pickup error or recognition error until when the
Run status is restored.
SEMI or MANU mode
Error
From when the machine has stooped due to an error (parts exhaust included) until
when the RESET key is pressed.
(However, the pickup error and recognition error are excluded.)
=REMARKS=
If RESET is pressed during an error stop, the machine status will change to Ready regardless of whether or
not the error has been cleared.
In case of safety stop, however, the status will not change until it is cleared.
m m n
0: Online 1: Remote
00: Run
01: Ready
02: Error (Error stop)
BM122/123/133/221/231
HOST COMPUTER SYSTEM
3.3 C commands
E35HEC-4A-181-B0
3.3-12
Ex.: D0 command
Command D1
Data size 3 (Output with fixed length of 3 characters.)
Data 001
Terminator 0
Terminator 0
Terminator 0
3.3.7 C3 Command (Inquiring Program Name)
Used to output he name of the currently selected product program from the machine to the host computer.
If no product program has been chosen, an ‘A4E01’ will be returned to the hot computer.
Item Description
Command name Inquiring program name
COM port used Port 1
Data format
Item Description
Command field C3 + Program type
Data size field 0
Data field None
Command sequence
Host computer system Equipment
C3
+ type
(1)
(2) D1 + Currently selected
program name
A2 (Data transfer end) (1) End
(1) No data type (2) Data-attached type
Active program:
Program names less than 15 characters will be padded with spaces.
Ex.: D0 command
Command D1
Data size 16 (Output with fixed length of 16 characters.)
Data PABC
Terminator 0
Terminator 0
Terminator 0
P xxxxxxxxxxxxxxx
Product program name (Fixed at 15 characters)