3.FP FUNCTIONS B-66284EN/01
- 344 -
3.1.3 FANUC PICTURE PMC window library
[Functions]
Function name Description
2.1 wrpmcb PMC write (bit)
2.2 rdpmc PMC read (1/2/4 bytes)
2.3 wrpmc PMC write (1/2/4 bytes)
2.4 rdpmcb PMC read (bit)
2.5 idrdpmcb PMC read (bit) (indirect specification)
2.6 idwrpmcb PMC write (bit) (indirect specification)
2.7 idrdpmc PMC read (1/2/4 bytes) (indirect specification)
2.8 idwrpmc PMC write (1/2/4 bytes) (indirect specification)
[Function reference]
2.1 PMC write (bit)
[Function name]
wrpmcb
[Data type]
1 : 1 byte
[Format/with arguments]
wrpmcb[adrtype_snumber_bitpos_data]
[Arguments]
adrtype PMC address type
0 : G (PMC → CNC)
1 : F (CNC → PMC)
2 : Y (PMC → machine)
3 : X (machine → PMC)
4 : A (message request)
5 : R (internal relay)
6 : T (variable timer)
7 : K (keep relay)
8 : C (counter)
9 : D (data table)
12 : E (PMC-SB7, PMC for Series 30i /internal relay)
snumber PMC address where data is written
bitpos Bit position (0 to 7)
data Output data (0 is specified at the ten keys input)
0 : 0 is written in the bit.
1 : 1 is written in the bit.
2 : The bit is reversed.
[Description]
Writing 1 or 0 in the bit in the specified PMC area or the bit data
is reversed.
[Example]
wrpmcb[9_0_0_0] Writes 0 in D[0] bit 0.
wrpmcb[9_1500_3_2] Writes 1 in D[1500] bit 3.