Skip to main content
Skip table of contents

set_fm(key, value)

Features

This command is used when interworking is required for information on variables (global variables, system variables, etc.) created when the program is executed, in addition to the system information already defined and linked with KT Smart Factory.


Caution

Please note that this function will not work if the linkage information is not set in the KT Smart

Factory menu in the Setup menu.

The KT Smart Factory menu only appears when setting up KT-specific licenses.

Parameter

Parameter NameData TypeDefault ValueDescription

key

string

-

Data Name

value

int

float

string

-

Interlocking Data Variable

Possible data types

  • Integer data
  • Real data
  • string data

Return

ValueDescription

None

-

Example

PY
count = 0

movej(posj(0, 0, 90, 0,90,0), vel=30, acc=30)
while True:
	movej(posj(0, 0, -90, 0,90,0), vel=30, acc=30)
	movej(posj(0, 0, 90, 0,90,0), vel=30, acc=30)
	count = count + 1
	set_fm(“TotalCount”, count)
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.