SOM-1750-001.pdf - 第6页
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 &quo…

Tg0967-PM-SO
1. Outline
Data can be exchanged between the main machine (TCM-X series)
and the external device through data communication for the following
purposes.
• The main machine automatically reports the component shortage data.
2. Functions
2.1 Component Shortage Data Output Function
This function makes it possible to issue component shortage alarm and
error messages through the local area network (Ethernet) running from
the storage unit of the network terminal (option).
The component shortage data is automatically reported from the main
machine side. (Real-Time System)
2.1.1 Functional Requirements
• Component shortage alarms and errors are transmitted.
Alarm Message : An alarm message related to component short-
age is issued.
Error Message : An error message related to component shortage
is issued.
• Up to 64 messages (data) can be stored internally.
65th or more messages (data) are discarded.
• Both alarm and error messages are issued at real time whenever
such data is generated.
When a component shortage error (including a pickup error) has oc-
curred at the last objective feeder slot No. for alternate mode, all the
objective alternate information (link data) is transmitted collectively.
Alarm and error messages (data) might be issued more than
once.
• The transmitted data is cleared when the corresponding "ACK" re-
sponse is received from the external device.
In other cases, the data is initialized when power is supplied or a
communication error has occurred (described later).
• It is also possible to set "ENABLE" or "DISABLE" in the "DATA OUT-
PUT MODE" data box at the corresponding window.
1. Outline
0309-001 4
Note

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