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 Name | Data Type | Default Value | Description |
---|---|---|---|
key | string | - | Data Name |
value | int float string | - | Interlocking Data Variable Possible data types
|
Return
Value | Description |
---|---|
None | - |
Example
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)