SOM-1750-001.pdf - 第7页
Tg0967-PM-SO 0309-001 6 2.1 Component Shortage Data Output Function (*3) Contents of Communication Data (CMP+DA T A ) T able 1 Data Name Number of Bytes Description Command (CMP) 1 0x44(‘D’): Data Output (2 bytes) 1 0x31…

Tg0967-PM-SO
0309-001 5
2.1.2 Interface
• Ethernet LAN Connection
• Socket Communication using TCP/IP
(External Host: Server, Device: Client)
2.1.3 Error Processing
• NAK Response (other than ACK) Received
When the "NAK (0x15)" is received, the data is transmitted again.
Note: The frequency control must be made on the host computer
side.
• Time-Out: Monitoring the normal performance of the external host
computer
The machine monitors if the "ACK" response (*2) is received from
the external host computer for the specified period of time (*1) after
the component shortage data has been transmitted to the external
device.
When the expected response is not received within the specified time,
the data is discarded.
(*1) The time can be specified in the "COMMUNICATION TIMER" data
box at the display.
Data Input Range: 0.1 to 20.0 seconds (in increments of 0.1 sec-
ond)
(*2) When the external host computer has normally received the data, it
sends back an "ACK (ASCII Code: 0x06)".
2.1.4 Communication Protocol (Real-Time System)
Fig. 1
2.1 Component Shortage Data Output Function

Tg0967-PM-SO
0309-001 6
2.1 Component Shortage Data Output Function
(*3) Contents of Communication Data (CMP+DATA) Table 1
Data Name Number of Bytes Description
Command (CMP) 1 0x44(‘D’): Data Output
(2 bytes) 1 0x31(‘1’): Component Shortage Data
Data Types 1 0x30(‘0’): Alarm Generated
0x31(‘1’): Error Generated
, 1 Delimiter (ASCII Code 0x2C)
Status 1 0x31(‘1’):COMP. MISSING (SENSOR)
0x32(‘2’):COMP. VERTICAL (SENSOR)
0x33(‘3’):COMP. MISSING (RECOG.)
0x34(‘4’):COMP. RECOG. ERROR
0x35(‘5’):SHORTAGE OF COMP.
0x36(‘6’):Reserved
0x37(‘7’):COMP. THICKNESS (SENSOR)
0x38(‘8’):COMP. PICKUP DIFF (RECOG)
0x39(‘9’):COMP. REVERSE (RECOG)
, 1 Delimiter (ASCII Code 0x2C)
Feeder Slot Nos. 3 Feeder Slot No. in Component Shortage Error
(101 to 180/201 to 280)
, 1 Delimiter (ASCII Code 0x2C)
Component ID 32 Component Identification Name
, 1 Delimiter (ASCII Code 0x2C)
Time Stamp 14 Year/Month/Day/O’clock/Minute/Second
Example:
19980325142340 Æ 14 o’clock 23 minutes 40 sec-
onds on March 25th, 1998
, 1 Delimiter (ASCII Code 0x2C)
Checksum 2 Described in (*4)
CR 1 Delimiter (ASCII Code 0x0D)
LF 1 Delimiter (ASCII Code 0x0A)
When a component ID is shorter than 32 characters, it is trans-
mitted with spaces (ASCII Code 0x20) added at the end.
Note

Tg0967-PM-SO
2.1 Component Shortage Data Output Function
0309-001 7
(*4) Checksum (CSM): 2 bytes
Fig. 2
• The checksum calculation method can be specified on your side.
Ref.: The ASCII codes in the command and data sections are
added. When the total of each 8 bits becomes "0" (zero), the
checksum is regarded as "OK".
The character position of the checksum is fixed.
Fig. 3