This program to determine the current value of a specified logical port of a remote host.
Code
PROGRAM getter
VAR
status : INTEGER
port_val : INTEGER
BEGIN
RGET_PORTVAL('RC1', io_rdo, 3, port_val, status)
END getter
When I compile it, get this error.
Code
Translating F:\commands\sc.kl
KTRANS Version V8.20 (Build 19 1/23/2018)
Copyright (C) FANUC Robotics America Corporation, 1985 through 2012.
All Rights Reserved.
F:\commands\sc.kl(7)
7 RGET_PORTVAL('RC1', io_rdo, 3, port_val, status)
^ ERROR
Id must be defined before this use. Id: RGET_PORTVAL
===============Translation not successful===============
Display More
How I can solve it?