Panasonic FP2 User Manual page 36

Serial data unit
Hide thumbs Also See for FP2:
Table of Contents

Advertisement

Confirming the Unit Settings and Design Contents
3.2
Setting the Transmission Speed and Transmission Format
Precautions concerning transmission format settings
The transmission format specified using the shared memory becomes effective
following a software reset.
The contents of the transmission format specified using the shared memory are cleared
if the power supply is interrupted, and the transmission speed and data length are set
to the values set with the transmission format setting switches. Other transmission
format values are set to the default values.
Transmission format settings should be written to the shared memory when execution
of the program begins.
Sample program
The "Control signals CS and CD" become valid as a result of the transmission format
settings entered at the factory.
In the example shown in the following program, the serial data unit is installed in slot
0.
Transmission format settings when the unit is shipped from the factory
Transmission speed
Data length
. . . . . . . . . . . . . .
Parity check
. . . . . . . . . . . . .
Stop bit
. . . . . . . . . . . . . . . . .
R9013
F0 MV
, H 19A
F151 WRT
, K0 , DT100 , K1 , K1003
Specifies the FP2 serial data unit
in slot no. 0.
The 1−word data from data register DT100
is written to the shared memory address 1003.
R9014
DF
XE
DF
R9014
Y1D
DF
/
3 − 8
. . . . . .
9600bps
8 bits
odd
1 bit
, DT100
Y1D
S
Y1D
R
To send/receive
processing
Control signals CS and CD
End code
. . . . . . . . . . . . . . . . . .
Start code
. . . . . . . . . . . . . . . . .
"H019A" is written to DT100 at the
first one scan.
The data is written to the address
1003 area (the transmission format of
CH1) of the shared memory.
The software reset is set (turned on) at the
next one scan.
The software reset is reset (turned off) when
the software reset completed flag goes on.
Reception processing should be started when
the software reset has been completed.
FP2 Serial Data Unit
. . .
Invalid
C
R
Invalid

Advertisement

Table of Contents
loading

Table of Contents