
B-66284EN/01 3.FP FUNCTIONS
- 337 -
1.64 Reading the relative position of a controlled axis (type 2)
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○
- - - - -
○:available
-:unavailable
[Function name]
relative2
[Data type]
4: 4 bytes (signed)
[Format/with arguments]
relative2[axis]
[Arguments]
axis Axis number
(= from 1 to the maximum number of controlled axes)
[Return value]
Relative position for the specified axis number
The same value as the relative position displayed on the position
display screen of the CNC is read.
For the Series 30i/31i/32i, the relative function can be used to
read the same coordinate value.
1.65 Presetting calendar and clock
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
This function is used only for the function specification property of a
button control.
[Function name]
settimer
[Data type]
4: 4 bytes (signed)
[Format/with arguments]
settimer[type_area_presetadr_pmc_address]
[Arguments]
type 0 : Date setting
1 : Time setting
2 : Date and time
area PMC address type
5 : R (Internal relay)
9 : D (Data table)
12 : E (PMC-SB7, PMC for Series 30i / Internal relay)
presetadr Start PMC address in which the preset value of the
calendar timer is stored
It is a pattern of three or six bytes depending on the
type, with each item being one byte, as shown in the
table below.
type address +0 +1 +2 +3 +4 +5
0 : Year Month Day
1 : Hour Minute Second
2 : Year Month Day Hour Minute Second
pmc Type of the PMC address for processing result
notification
5 : R