cnc_modal
- Last UpdatedFeb 23, 2023
- 1 minute read
The connector reads modal data with cnc_modal function and the parameter defined as the following format:
<Address>.<Assigned Block>
Address: The following list includes all addresses that are supported by the connector. The function parameter must start with one of the following addresses in order to be valid:
|
Address |
Type code |
|---|---|
|
A |
112 |
|
B |
100 |
|
C |
113 |
|
D |
101 |
|
E |
102 |
|
F |
103 |
|
H |
104 |
|
I |
114 |
|
J |
115 |
|
K |
116 |
|
L |
105 |
|
M |
106 |
|
N |
117 |
|
O |
118 |
|
P |
110 |
|
Q |
111 |
|
S |
107 |
|
T |
108 |
|
U |
119 |
|
V |
120 |
|
W |
121 |
|
X |
122 |
|
Y |
123 |
|
Z |
124 |
|
G_CODE |
0 |
Assigned block: Assigned block indicates from which block the connector reads data. A valid value for Assigned block should be between 0 and 3. The following table includes the definition of assigned block values:
|
Block number |
Description |
|---|---|
|
0 |
Active block |
|
1 |
Next block |
|
2 |
Block after next block |
|
3 |
Previous block |
If an address of G_CODE is specified, the connector will attempt to read all G-Code values that exist in the specified block. A string value containing all read G-Code values delimited by the pipe symbol ( ) will be sent to PI System.
Although the connector is able to send any valid assigned block number you configure to the machine, it may not be able to get data back if that specific machine does not support that block number. Refer to the FANUC Focas documentation for this function to check the support on assigned block number for different machine types.