5-9
5-7 Connecting Variables and Commands
to FB Terminals
Connecting to FB terminals
This paragraph describes how to program for each expansion FB terminal.
_C_free
BOOL
BOOL
INT
WORD array
INT array
BOOL
WORD
BOOL
BOOL
WORD
BOOL
BOOL
WORD
INT
INT
WORD array
Structure
OPEN
S_REQ
S_LEN
OK
O_STS
S_END
S_ERR
S_STS
R_END
R_ERR
R_STS
R_LEN
STN_NO
S_DAT
R_DAT
PARA
RAS
5-7-1 Connecting variable to “PARA” terminal
The variable which was assigned data in “5-5 Communication Parameter Setting” is connected to communication
parameter terminal “PARA.”
PARA
PARA
Because data was assigned to array data type variable “PARA” in “5-5 Communication Parameter
Setting”, connection is made only by writing variable name “PARA” at the terminal.
5-7-2 Operation for starting FB
After all necessary communication parameters are set, initialization will start when the input terminal “OPEN” is turned ON.
When initialization ends, the output terminal “OK” turns ON, and communication becomes possible.
_C_free
OPEN
S_REQ
S_LEN
FB starting conditions
PSET
PSET is a flag which is programmed to turn
OFF when parameter setting ends. Refer to
“<Sample setting program>” in 5-5.
(Note)
Note: FB starting conditions need
to be programmed such that
the ON status is kept.