
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
151/226
DRAW.NO.
3.10.11
Write to the Reader / Puncher Interface
[Name]
pl_rswrt
[Syntax]
#include <pmclib.h>
short pl_rswrt(char * buf, unsigned short size);
[Arguments]
Input
*buf: Data
Set the array that you want to write.
size: Size of the data
Set size of the data that you want to write. The maximum size is
256 bytes.
Output
---
[Return]
0: Normal completion
-11: The reader / Puncher interface is not opened.
-12: Cannot write
2: The "size" is invalid.
5: The argument is invalid.
20: The communication status is invalid or the "DR" signal is OFF.
[Description]
This function writes data to the reader / puncher interface.
You should open the interface by the calling of pl_rsopen(), not
pl_rsopen2(), before the calling of pl_rswrt(). You should close the
interface by the calling of pl_rsclose(), not pl_rsclose2(), after the calling
of pl_rswrt().
When you use this function, you cannot use the conventional function
related to The RS-232C communication in "C library for C executor"
together.
[Related Function]
rs_wrt()