
3.FP FUNCTIONS B-66244EN/03
- 222 -
[Function reference]
1.1 Reading CNC system information
[Function name]
sysinfo
[Data type]
6: Character string
[Format/with arguments]
sysinfo[type]
[Arguments]
type = 0 CNC type (character string in ASCII)
1 M/T/TT type (character string in ASCII)
2 Series (character string in ASCII)
3 Edition (character string in ASCII)
4 Number of controlled axes (character string in ASCII)
[Return value]
CNC system information for the specified type
[Example]
Specify a character string as the property/action data type.
In the FS16i-MA (ROM series: B0F1, edition: 10) 4-axis system,
executing this function provides the following information:
sysinfo[0] => "16"
sysinfo[1] => " M"
sysinfo[2] => "B0F1"
sysinfo[3] => "0010"
sysinfo[4] => "4 "
1.2 Reading program information
[Function name]
rdproginfo
[Data type]
5: 4 bytes
[Format/with arguments]
rdproginfo[type]
[Arguments]
type = 0 Number of registered programs
1 Number of programs not registered
2 Used memory area (the number of characters)
3 Unused memory area (the number of characters)
[Return value]
Program information for the specified type
1.3 Reading the current program number
[Function name]
rdprgnum
[Data type]
3: 2 bytes
[Format/with arguments]