
B–61863E–1/06
10. READER/PUNCHER INTERFACEPMC LIBRARY
271
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_rswrt2
[Description]
Sends data through the reader/puncher interface. This function cannot
be used when the interface has been opened in the data input mode
(OP=11 or 12).
[Format]
ret = pl_rswrt2(P1,P2,P3) ;
short ret ;
short P1 ;
char *P2 ;
unsigned short P3 ;
[Input]
P1 Specifying the channel to output
1 : channel 1
2 : channel 2
*P2 Output character string
’X’
’X’
’X’
’X’
P3 Size of output character string (The maximum size is 256 bytes)
[Output]
______
[Returns]
ret Completion code (0, 1, 2, 5, 6, 20, 22)
[Remarks]
For the return value, see the item on the completion code types.
10.11
OUTPUTTING DATA
THROUGH THE
READER/PUNCHER
INTERFACE
0
1
2
N–2
N–1
N
P2
Specify it in ASCII code. The actual output code is
determined by the OC value specified with pl_rsopen2() and
pl_fopen2(). When OP is set to 1 or 2, the specified data is
directly output.