
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
82/226
DRAW.NO.
3.6.3
Read Symbol and Comment in LADDER Program
[Name]
pl_symcmt
[Syntax]
#include <pmclib.h>
unsigned short pl_symcmt(unsigned char id,
unsigned char type,
unsigned short offset,
unsigned short bit,
unsigned char * symbol,
unsigned char * comment,
unsigned char * size);
[Arguments]
Input
id: PMC ADDRESS ID
G:0, F:1, Y:2, X:3, A:4, R:5, T:6, K:7, C:8, D:9, M:10, N:11,
E:12
type: 0: Byte address
1: Bit address
offset: PMC address offset
bit: PMC address bit position (0-7)
Output
*symbol: Read symbol string (up to 7 characters including a NULL
character)
*comment: Read comment string(up to 31 characters including a NULL
character)
*size: Comment string size (not including a NULL character)
[Return]
0: Normal completion.
1: The "id", "type", "offset" or "bit" is invalid, or there is no
sequence program.
[Description]
This function reads a symbol or comment of the specified PMC address.
Up to 6 symbol characters can be read. Up to 30 comment characters can
be read.
At the end of the read character string "*symbol" or "*comment", a
NULL character ('\0') is added. For a "symbol", set a pointer to an array