FOCAS
Reference for the FOCAS connector, which reads data from FANUC CNC machines using the FOCAS protocol.
Last updated
Was this helpful?
Was this helpful?
{ "id": 1, "timestamp": 1637339824109, "value": { "code": "G01", "flag": 0, "group": 0 } }{
"id": 1,
"timestamp": 1637339309823,
"value": {
"blck_del": 0,
"datano": 16723,
"dry_run": 0,
"feed_hold": 0,
"feed_ovrd": 0,
"hndl_ax": -1,
"hndl_mv": 0,
"jog_ovrd": 0,
"machn_lock": 0,
"mem_prtct": 0,
"mode": 2,
"rpd_ovrd": 0,
"sngl_blck": 0,
"spdl_ovrd": 0,
"type": 32767
}
}{ "id": 1, "timestamp": 1637339187748, "value": { "data": 0, "mdata": 0 } }{
"id": 1,
"timestamp": 1637339711053,
"value": {
"actf": { "data": 1600, "dec": 0, "disp": 0, "name": "F", "suff": "\u0000", "unit": 0 },
"acts": { "data": 751, "dec": 0, "disp": 1, "name": "S", "suff": " ", "unit": 2 }
}
}{ "id": 1, "timestamp": 1637339785074, "value": { "data": [820, 19744, 12615, 23089, 14129, 12590, 13104, 0], "datano": 1, "type": 32 } }{
"id": 1,
"timestamp": 1637339042705,
"value": {
"alarm": 0,
"aut": 1,
"edit": 0,
"emergency": 0,
"ext_opt": 0,
"hdck": 0,
"motion": 1,
"mstb": 0,
"o3dchk": 0,
"restart": 0,
"run": 3,
"tmmode": 0,
"warning": 0
}
}{
"id": 1,
"timestamp": 1637339898044,
"value": { "addinfo": 2, "axes": "03", "cnc_type": "31", "max_axis": 32, "mt_type": " M", "series": "G11Z", "version": "17.1" }
}{ "id": 1, "timestamp": 1637341486343, "value": { "cdata": [100, 51, 34, 44, 34], "datano_e": 30, "datano_s": 30, "type_a": 0, "type_d": 0 } }O1234 ;
G1 F0.3 W10. ;
M30 ;
%\nO1234\nG1F0.3W10.\nM30\n%{ "id": 1, "timestamp": 1637340781387 }description: >
Sample FOCAS service commissioning file
metadata:
name: Sample FOCAS service
icon: https://www.cybus.io/wp-content/uploads/2017/10/for-whom1.svg
provider: cybus
homepage: https://www.cybus.io
version: 1.0.0
parameters:
focasHost:
type: string
default: 192.168.2.170
focasPort:
type: integer
default: 8193
initialReconnectDelay:
type: integer
default: 1000
maxReconnectDelay:
type: integer
default: 30000
factorReconnectDelay:
type: integer
default: 2
resources:
focasConnection:
type: Cybus::Connection
properties:
protocol: Focas
connection:
host: !ref focasHost
port: !ref focasPort
connectionStrategy:
initialDelay: !ref initialReconnectDelay
maxDelay: !ref maxReconnectDelay
incrementFactor: !ref factorReconnectDelay
subscribeExample1:
type: Cybus::Endpoint
properties:
protocol: Focas
connection: !ref focasConnection
subscribe:
method: 'cnc_statinfo2'
interval: 3000
readExample1:
type: Cybus::Endpoint
properties:
protocol: Focas
connection: !ref focasConnection
read:
method: 'cnc_sysinfo'