Advantech WebAccess CNC User Manual Ed.10 FINAL
Advantech WebAccess CNC User Manual Ed.10 FINAL
Advantech
WebAccess/CNC
Chapter 1
Supports major CNC and I/O monitoring device functions.
Supports various protocols for connecting common industrial devices and PLCs.
100% web-based SCADA software including an HTML5 dashboard with cross-
platform compatibility.
Provides the full functionality of WebAccess professional version.
Upgradeable to increase the number of available CNC and robot connections.
1.2.3 Specifications
Advantech WebAccess/CNC
List of Supported CNC Controllers for WebAccess/CNC Runtime
FANUC: 0i-A/B/C/D/F, 16i, 18i, 21i, 31i, 32i (FOCAS library requirement).
MITSUBISHI: M700/M70, M800/M80 series.
HEIDENHAIN: iTNC530, TNC640 (DNC optional requirement)
(The maximum number of connections for HEIDENHAIN is limited to 16 for each
instance of WebAccess/CNC runtime).
SIEMENS: 840Dsl & 828D (OPC UA license requirement).
Note! The WebAccess/CNC driver can connect more than 50 CNCs simulta-
neously. The number of connections depends on the WebAccess/CNC
license and PC performance. The WebAccess/CNC driver cannot be
used with WebAccess/CNC runtime on the same PC. We suggest that
you use different PCs to connect different CNC devices.
SCADA Software
Advantech WebAccess 8.4 Professional or WebAccess 9.x Professional.
Chapter 2
Getting Started
3. Click Next to confirm the installation.
After the installation has completed, a log file will be available at the following
address: C:\WebAccess\Node\WebAccessCNC\install.log
Chapter 2
The CNC Device Settings screen in WebAccess/CNC is for configuring CNC run-
time network settings. From this screen, you can add, delete, and modify CNC device
settings and also start WebAccess/CNC runtime. The CNC device settings for CNC
runtime supports Fanuc, Mitsubishi, Siemens, and Heidenhain CNCs.
Open CNC Device Settings for CNC Runtime from the start menu (default: Start →
All Programs → WebAccess CNC → CNC Device Setting for CNC Runtime). The
launch screen will appear as shown in Figure 2.1.
Getting Started
Figure 2.1 Device Settings for CNC Runtime
Chapter 2
1. Click Start Runtime on the CNC Device Settings screen. This will enable the
CNC runtime connection between the selected CNC devices.
2. From the start menu: Start → All Programs → WebAccess CNC → Start Web-
Access CNC Runtime.
Getting Started
Figure 2.4 WebAccess CNC Runtime
Note! You can right-click on the WebAccess CNC Runtime icon in the notifica-
tion area to exit the runtime service.
The CNC runtime settings will be recorded in the corresponding path of the installa-
tion sector as "C:\XML\SkyMarsNoUISet.xml".
Project Selection: This screen (Figure 2.5) allows you to set the WebAccess
project name and node name. You can create a new project or select an existing
one.
Chapter 2
address and port number of WebAccess/CNC Runtime. The default port num-
ber is 9701. Note that "pmc" is the default key for both the Conn Key and the
Write Key.
Getting Started
Figure 2.6 Runtime Device Selection
Driver Connection Setting: This screen (Figure 2.7) allows you to add the sup-
ported CNC and robot controllers. LNC controllers are supported by automatic
searching in the same network segment. You can also set the IP address of the
LNC controller manually. You will need to configure the IP address and port set-
tings of supported CNC and robot devices.
Note! If you add a search list at the runtime device selection step, the driver
connection setting step will not be an option. WebAccess/CNC runtime
cannot be used in conjunction with the WebAccess/CNC driver.
Figure 2.9 Set up the watchdog tool of CNC runtime in User Program
Note! The seven CNC functions of the web pages are designed for the com-
mon functions of Fanuc, Mitsubishi, Heidenhain and Siemens CNC. The
functions are not all suitable for the each CNC types.
Chapter 3
Data monitoring allows you to monitor data from connected CNC devices in real time,
including CNC status, coordinates, G-code, non-G-code, part count, CNC operating
time, actual feed rate, and actual speed.
Chapter 3
This screen provides real-time monitoring information on spindle loading, which
allows you to analyze tool wear/damage.
You can set which of the nine main CNC tool screens can be viewed in addition to the
Overview screen. Which screens are viewable can be modified by setting the video
display parameter “menu” of the wacnc.drw as follows:
uti:../WebAccessCNC/index.asp?goto=graph=main&menu=32&hwnd=%HWND&
You can set each CNC device’s information page so that it can be accessed directly.
To do this, adjust the video display parameters “device” and “comport” in your DRW
file as follows:
uti:../WebAccessCNC/index.asp?device=CNC6&comport=1&hwnd=%HWND&
Chapter 4
and SIEMENS)
GET_alm_history2;0,Alm- Text
AlmDateH History alarm date
His,1,AlmDate (Array)
GET_alm_history2;0,Alm- Text
AlmMsgH History alarm message
His,1,AlmMsg (Array)
Flag (0 ->1) from getting the history
GetHAlm GET_alm_history2;10001 Discrete alarm including AlmClasH, AlmCo-
deH, AlmDateH & AlmMsgH
GET_feed_spindle
Chapter 4
and SIEMENS)
GET_nc_mem_list;0,NcList,1, Text Machine memory: NC program file
MNcFD
FD (Array) type (file/directory)
GET_nc_mem_list;0,NcList,1, Text Machine memory: NC program
MNcName
NcName (Array) name
GET_nc_mem_list;0,NcList,1, Text Machine memory: NC program
MNcRmk
Remark (Array) remark
GET_nc_mem_list;0,NcList,1, Analog Machine memory: NC program size
MNcSize
Size (Array) (Bytes)
Chapter 4
and SIEMENS)
Supports CNC: FANUC, MITSUBISHI, HEIDENHAIN, SIEMENS
SpinLoad GET_spindle_load;1,Load Analog Spindle load (%)
GET_spindle_speed
Supports CNC: FANUC, MITSUBISHI, HEIDENHAIN, SIEMENS
SpinSped GET_spindle_speed;1,Speed Analog Spindle speed
GET_spindle_temperature
Supports CNC: FANUC, HEIDENHAIN, SIEMENS
Chapter 4
and SIEMENS)
GET_utilization_sin- Text Single machine availability: status
UtiStatu
gle_all;0,UtilList,1,Status (Array) (OFF, IDLE, ALARM, BUSY)
GET_utilization_sin- Text Single machine availability: start
UtiSTime
gle_all;0,UtilList,1,StDateTime (Array) time
GET_utilization_sin-
Text Single machine availability: end
UtiETime gle_all;0,UtilList,1,EndDate-
(Array) time
Time
GET_utilization_sin- Analog Single machine availability: total
Chapter 4
and SIEMENS)
GET_tool_edge_parame-
Analog The parameter number of first tool
Edge1PNo ter_siemens;1,EdgeData,0,
(Array) edge (SIEMENS)
ParmaData,1,ParamNO
GET_tool_edge_parame-
ter_siemens;1,Edge- Analog The parameter value of first tool
Edge1PV
Data,0,ParmaData,1,Param- (Array) edge (SIEMENS)
Value
GET_tool_edge_parame-
Analog The parameter number of second
Chapter 4
HEIDENHAIN and SIEMENS)
Error(path number error)
*[800b] A path number is incorrect
(11)
Error(CNC mode error)
*[800c] The CNC mode is incorrect; correct the CNC mode
(12)
Error(CNC execution CNC execution rejected. Check the condition of
*[800d]
rejection) (13) execution.
Error(Data server error)
*[800e] An error has occurred no the data server
(14)
Chapter 4
Text
AlmTime R1790005-5,40 The time of alarm message
(Array)
CNC connection status
0: DISCONNECT
MASTATUS MASTATUS Discrete 1: RUN (only for MEM mode)
2: IDLE
3: ALARM
Chapter 4
Outdoor status
DoorOut 01:0004:X01:00007 Discrete
0:Close, 1:Open
Inner door status
DoorInne 01:0004:X01:00008 Discrete
0:Close, 1:Open
Side door status
DoorSide 01:0004:X01:00009 Discrete
0:Close, 1:Open
Quickoverride
0: speed1,
1: speed2,
Chapter 4
Analog
WCGEXT 99:0006:H01:00000 Work coordinate extension
(Array)
Analog
WCG5401 99:0006:X01:00000 Work coordinate G54.01
(Array)
Analog
WCG5402 99:0006:X02:00000 Work coordinate G54.02
(Array)
Analog
WCG5403 99:0006:X03:00000 Work coordinate G54.03
(Array)
Analog
Chapter 4
Cycle time (L01:00000 or L01:00002) (for
TimeCyc 01:0011:L01:00002 Analog
C00)
TimeCut 01:0011:L01:00003 Analog Cut time (L01:00001 or L01:00003) (for C00)
Cycle time (L01:00000 or L01:00002) (for
TimeCycD 01:0013:L01:00000 Analog
D00)
TimeCutD 01:0013:L01:00001 Analog Cut time (L01:00001 or L01:00003) (for D00)
03:0000:rmk:00000: Get the remark content of the NC file accord-
curncrmk Text
(keywords) ing to the keywords
Chapter 4
AUTOMATIC/MANUAL mode selection
(mode.extvt0)
0: MDI
1: Memory
2: ****
3: EDIT
mode mode Analog 4: Handle
5: JOG
6: Teach in JOG
7: Teach in Handle
Chapter 4
Analog
servtemp servtemp Read servo temperature
(Array)
Analog
spintemp spintemp Read spindle temperature
(Array)
Flag (0 ->1) from getting macro variables includ-
getmacro getmacro Discrete
ing macdata & macnum & macdata2
Analog
macdata macdata Read custom macro data
(Array)
Analog
Chapter 4
Flag (0 ->1) from uploading a NC program as
upmpgm upmpgm Discrete upmnc to CNC memory accoring to the destina-
tion directory as upmncdir
upmnc upmnc Text The upload file name of a NC program (input)
The destination directory for an uploaded NC
upmncdir upmncdir Text
program (input)
Flag (0 ->1) from getting a NC program as mqnc
getmpgm getmpgm Discrete
from CNC memory
NC program name or the name with the path
Chapter 4
Operation mode
0: Manual
1: MDA
2:1:1:MACHINE/READ/CNC- 2: Auto
Mode CHANNEL?ACTOPERA- Discrete 3: Edit
TIONMODE 4: Home
5: MPG
6: Null
7: Others
Chapter 4
Get tool life type
0: Disabled
TLType tolifetype Discrete
1: Type 1
2: Type 2
Text
TLTitle tolifeti Get the array(11) title of tool life
Array
Get the array(11) values of tool life by tool group
Text number 1 and tool number 1
TLg1t1 tolifevalue_1_1
Array _1: tool group number 1
Chapter 4
A3TRNum A3TRNum Analog Axis 3 transmission ratio numerator
A3ID A3AssetID Text Axis 3 asset ID
Axis 3 motion profile
0: Other
1: Rotary
A3MProf A3MProf Discrete
2: Rotary Endless
3: Linear
4: Linear Endless
A4Pos A4Pos Analog Axis 4 actual position
Chapter 4
X0 Reg.X.0 Analog X0 register
Y0 Reg.Y.0 Analog Y0 register
Text
almtext Alarm.String Alarm text
(Array)
ax0name Axis.0.NAME Text Axis 0 name
chname Chan.0.0.NAME Text Channel 0 Index 0 Name
DRVver Sys.DRVVER Text Driver version
MAinfo Sys.MACHINEINFO Text Machine information
Chapter 4
Total number of workpieces machined in cur-
parts parts Analog
rent run
totalpar totalpar Analog Total number of all machined workpieces
mainprog mainprog Text Currently selected program
subprog subprog Text Program name
Flag (0 ->1) from setting the main program as
setmain setmain Discrete
setmainn
Set an NC program name as the main pro-
Chapter 4
PLC DB address sample as Plc_A_B
Plc_DB10_D-
plc_DB Analog A: DB10
BX56.1
B: DBX56.1
R_0 R_0 Analog R variable as R_0, R_1,…
R variables in array as
Analog
R_1_2 R_1_2 R_1_5: R1~R5
(Array)
R_10_2: R10~R11
Flag (0->1) from getting a NC program as
getmpgm getmpgm Discrete
mqnc from CNC memory
Chapter 4
Analog
servload 5:servload Read servo load
(Array)
Analog
spinload 6:spinload Read spindle load
(Array)
cyccur 7:cur Analog Current cycle time (sec)
cyctol 7:total Analog Read/reset total cycle time (sec)
8:abso-
powtol Analog Total power on time (sec)
lute:online
Chapter 4
CNC connection status
0: DISCONNECT
MASTATUS MASTATUS Discrete 1: RUN (only for AUTO mode)
2: IDLE
3: ALARM
Note! When CNC manufacturer using Heidenhain iTNC 530 controller has dif-
ferent PLC address definition, the user can adjust the driver address to
Chapter 4
Flag (0->1) from deleting a NC program as
delmpgm delmpgm Discrete
delmanme under CNC mncdir folder
The file name will be deleted under CNC mnc-
delmname delmname Text
dir folder
mncdir mncdir Text The destination directory of CNC.
Flag (0 ->1) from getting the NC program list
getmlist getmlist Discrete under CNC mncdir folder including mdirname,
mdirtime, mncname, mnctime and mncsize.
Text Read the folder name under CNC mncdir
Note! When CNC manufacturer using Heidenhain TNC 640 controller has dif-
ferent PLC address definition, the user can adjust the driver address to
match the manufacturer PLC setting to get the correct tag’s value.
5.1.1 Specification
Supports Robot Controllers List
Fanuc Robot Controllers:
– R-J3iB 7D80/45 or later
– R-J3iB 7D81/09 or later
– R-J3iB 7D82/01 or later
– R-J3iB Mate 7D91/01 or later
– R-30iA, R-30iA Mate All Versions (*)
– R-30iB, R-30iB Mate All Versions (*)
– R-30iB Plus, R-30iB Mate Plus, R-30iB Compact Plus All Versions (*)
(*) If R650 FRA Params is selected, R553 “HMI Device (SNPX)” is needed. If R651
FRL Params is selected, no option is needed
The TCPIP Comport is usually associated with an Ethernet Network Interface Card
on the SCADA Node PC. Any TCPIP compatible medium is supported as long as it
complies with Microsoft TCPIP protocol stack. The user should give the setting for
comport number, scan time, timeout, retry count, auto recover time and scan devices
in parallel according to your actual connection requirements.
Chapter 5
UO04 UO.4 Discrete Program Paused
UO05 UO.5 Discrete Motion Held
UO06 UO.6 Discrete Fault
UO07 UO.7 Discrete At Perch
UO08 UO.8 Discrete TP Enable
UO09 UO.9 Discrete Battery Alarm
UO10 UO.10 Discrete Busy
UO11 UO.11 Discrete RSR/PNS 1 ACK/SNO
Chapter 5
Alarm.Current.1.SeverityMes- Text Current Alarm1 Severity Mes-
CASMe1
sage (Array) sage
Analog
CAYea1 Alarm.Current.1.Year Current Alarm1 Year
(Array)
Analog
CAMon1 Alarm.Current.1.Month Current Alarm1 Month
(Array)
Analog
CADay1 Alarm.Current.1.Day Current Alarm1 Day
(Array)
Analog
Please refer the FANUC connection manual (hardware) about the RS232 interface
and the connector definition.
Macro commands available in FANUC CNC allow the CNC to output information
while it runs. The user can use a DPRNT command to output data to a terminal or
serial printer. The relative macro commands as the following order:
Open command: POPEN
Data output command: DPRNT
Close command: PCLOS
These external output commands can be specified for an external input/output device
including RS232-C, memory card, USB memory, data server and embedded Ether-
net by the FANUC I/O channel parameter. Using DPRNT command, FANUC CNC
can output characters and each digit in the value of a variable. The data command
DPRNT is shown as DPRNT[a#b[cd]]
a: character
#b: variable
c: number of significant digits in the integer part
d: number of significant decimal places
In the FANUC CNC, customers can add the designed subprogram and use M98 to
call the subprogram in the proper program flow to output the desired data via RS232
interface. For example, the subprogram (O6000) including DPRNT commands is
listed as:
%
O6000
POPEN
DPRNT[STRING001*0BCL110601] (output characters sample)
DPRNT[STRING002*TR082017] (output characters sample)
DPRNT[ANALOG001*#3901[80]] (output variable’s value sample)
DPRNT[ANALOG002*#3902[80]] (output variable’s value sample)
DPRNT[………..] (output other data)
PCLOS
M99
%
In the WebAccess, customers can add the serial port and set the device as the
device type “DPRNT”. The parameter “Line Indicator” is decided by the CNC param-
eter 6001#4(CRO) setting. When only using “LF”, the line indicator should be set to
0x0a. When using “LF” and “CR”, the line indicator should be set to 0x0a8d. The
“Idle Timeout” is used to determine the time out value. When the set time out is
exceeded, the tag’s value will be cleared. If customers want to keep the last tag’s
value even the set time out is exceeded, the “Idle Timeout” can be set to 0 to disable
the time out function.
When connecting to FANUC CNC RS232 interface, please use a PC’s RS232 or
Advantech EKI serial device instead of using the USB to RS232 converter to avoid
the packet to be unreadable situation.
Code Meaning
0x8001 Internal error
0x8002 Line indicator format error
0x8003 COM port error
0x8004 No tag’s value obtained under this device
0x8101 No tag’s value obtained
0x8102 ISO code transcoding error
○: Supported function
∆: Partial supported function