Settings Using A Program - Panasonic FP0H User Manual

Programmable controller
Hide thumbs Also See for FP0H:
Table of Contents

Advertisement

Setting and Confirmation of Communication Conditions

3.2.2 Settings Using a Program

Purposes and communication conditions of each communication port may also be specified
using system register setting instruction SYS1.
 Sample program
This is a program that changes the transmission format, baud rate, and unit numbers of
COM1 port.
R9013
Set the transmission format of COM1 port to "Data length: 8 bits; Parity: None; Stop bit: 2".
Set the baud rate of COM1 port to 19200 bps.
Set the unit No. of COM1 port to No.3.
 Input by using FPWIN GR7
Input into an operand of SYS1 instruction should be performed as a string. A string that
indicates a port and a string that indicates a parameter should be separated by ", (comma)".
On FPWIN GR7, an inputted character constant is bracketed by double quotation marks.
Example: when a transmission format is specified
Port
COM0: COM0 Port
COM1: COM1 Port
COM2: COM2 Port
Data length
B7: 7 bits; B8: 8 bits
Parity
PN: None; PO: Odd; PE: Even
Stop bit
S1: 1 bit; S2: 2 bits
(Note): For details of instruction programming, refer to the FP Series Programming Manual (No. ARCT1F313E).
3-4
C O M 1 , B 7 P N S 1
SYS1
"COM1,B8PNS2
SYS1
"
"COM1,19200
SYS1
"
"COM1,No3
"

Advertisement

Table of Contents
loading

Table of Contents