6. Sequence program explanation
6.1. For serial connection
6.1.1. Use program
Project file name in
this program
Program name
Development tool
Use language
Use FB
* Project file target programmable controllers are set by the MELSEC iQ-F series.
6.1.2. Label variable definition
Global labels used in this program are shown in the following.
No.
Label name
1
uTransErrCode
2
wTransDataSize
3
wSendData[128]
4
bTransExecFlg
5
bStartSend
6
bSend_OK
7
bSend_NG
* Data type
WORD
INT
BOOL
gw_ld-brother-tt-232_f_ot.gx3
SETPRINT
GX Works3 Version 1.070Y
Ladder, ST language, FB
For serial communication module
M+FX5UCPU-SerialComm_Output
Data type
WORD
INT
INT
BOOL
BOOL
BOOL
BOOL
Word [without code]/bit stream [16 bit]
Word [with code]
Bit
Transmission error code
Transmission data length
Transmission data buffer
Data transmission in execution
Transmission start
Transmission success
Transmission failure
19
MELSEC iQ-R Brother Label Printer Sample Program Reference Manual
Usage