
11. NC WINDOW LIBRARY
B–61863E–1/06
PMC LIBRARY
280
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_nc_windw
[Description]
function to write window data from the NC.
[Format]
ret = pl_nc_windw(P1) ;
short ret ;
short *P1 ;
[Input]
*P1 Window library information
The values of the function code, data length, data number, data
attribute, and data area need to be specified according to the window
data to be written.
[Output]
______
[Returns]
ret Complete code (–10, –1, 0, 1, 2, 3, 4, 5, 6, 7)
[Remarks]
For the return values, see the section on completion code types.
For details on writing window data between the PMC and NC, see
Appendix B, “PMC-PA1 / PA3 / SA1 / SA2 / SA3 / SA5 / SB / SB2
/ SB3 / SB4 / SB5 / SB6 / SC / SC3 / SC4 / NB / NB2 /NB6 (LADDER
LANGUAGE) Programming Description.”
The length of the window data area depends on the window type.
11.2
WRITING WINDOW
DATA FROM THE NC
0
2
4
6
8
10
12
40
42
P1
Function code
(Complete code)
Data length
Data number
Data attribute
Data area
Data area
Data area