Machine Data Collection - NGC
Machine Data Collection - NGC
Machine Data Collection - NGC
Introduction
This procedure will show you different ways you can collect machine data from a NGC Control.
Page 1 of 8 pages
Machine Data Collection - NGC
Page 2 of 8 pages
Machine Data Collection - NGC
Machine Data Collection (MDC) lets you use Q and E commands to extract data from the control through the Ethernet
port or the Wireless Networking option. Setting 143 both enables the feature and specifies the data port that the
control uses to communicate.
The Haas control uses a TCP server to communicate over networks. On the remote computer, you can use any
terminal program that supports TCP; this example uses PuTTY.
Note: The Putty program can handle up to (2) simultaneous connections. Output requested by one connection is
sent to all connections.
Note: To use MDC in this example the machine must already be connected to the network.
Page 3 of 8 pages
Machine Data Collection - NGC
1
Make sure the machine is connected to the
network.
2
Set Setting 143 Machine Data Collect port
to 5051.
3
Go to Settings/Network tab and write down the IP
Address of the machine.
4
In the Host Name (or IP address) field. Set the
machine's IP Address [1].
5
In the Port field. Set the Port number you
specified in Setting 143, for this example it will
be 5051 [2].
6
Set the Connection type to Telnet [3].
7
Click on Connection and check the box for Enable
TCP keepalives (SO_KEEPALIVE option).
8
In Save Sessions type in Machine Data Collect.
This will save the settings, next time you open the
PuTTY program.
9
1. Run the PuTTY program. Click on the
Session Category.
Page 4 of 8 pages
Machine Data Collection - NGC
10
Select Open to start the connection.
11
Turn the Caps Lock on your keybord.
12
Type ?Q100 .
13
Refer to the next section for more Queries and
Commands.
Query Format
The correct query format is ?Q###, where ### is the query number, terminated with a new line.
Response Format
Responses from the control begin with > and end with /r/n. Successful queries return the name of the query, then the
requested information, separated by commas. For example, a query of ?Q102 returns MODEL, XXX, where XXX is the
machine model. The comma lets you treat the output as comma-separated variable (CSV) data.
An unrecognized command returns a question mark followed by the unrecognized command; for
example, ?Q105 returns ?, ?Q105.
Page 5 of 8 pages
Machine Data Collection - NGC
?Q500 Three-in-one (PROGRAM, Oxxxxx, STATUS, PARTS, xxxxx PROGRAM, MDI, IDLE, PARTS, 380
You can request the contents of any macro or system variable with the ?Q600 command; for example, ?Q600 xxxx.
This shows the contents of macro variable xxxx on the remote computer.
You can use an E command to write to macro variables #1-33 and #10000-#10999.
Note: Macro variables #10550-#10580 are unavailable if the mill has a probing system. See the Operator's Manual
for a list of available system variables.
The correct E Command format is ?Exxxx yyyyyy.yyyyyy where xxxx is the macro variable and yyyyyy.yyyyyy is the new
value.
Note: When you write to a global variable, make sure that no other programs on the machine use that variable.
Caution: Use extreme caution when you write to a system variable. Incorrect values for a system variable can
cause damage to the machine.
Page 6 of 8 pages
Machine Data Collection - NGC
Page 7 of 8 pages
Machine Data Collection - NGC
The NGC control has the ability to communicate the status of the control using the 8M PCB relays. The status of 8M
PCB relays (outputs 90 - 97 ) will change state depending on the condition of the machine.
Note: To monitor the Power On or E-stop state an extra contactor will need to be added to the Power On and
Emergency Stop button.
To use this feature you will need to have a 8M option installed and a service key.
Note: If the machine is equipped with a non-servo autodoor option it will have the 8M PCB installed you cannot
use this 8M PCB. In this case you need to install a secondary 8M PCB, refer to 8M OPTION - INSTALLATION.
To enable the feature go into service mode and change Factory Setting:
The following table shows you which relays will be turned on, when the machine is at a certain mode.
Other Modes (Zero, DNC, JOG, List Prog, etc) All relays are turned OFF.
Page 8 of 8 pages