S3-3 Communication Procedures - FujiFilm NA0LA-ET1 User Manual

Micrex-sx series spf ethernet communication
Table of Contents

Advertisement

Software Section

S3-3 Communication Procedures

(1) Opening a communication port
To send or receive data to or from the target station, open a communication port first (set on "O_EN" by an application program)
to establish the connection.
When a port is opened normally, "O_OK" is set on and the self station is ready for sending and receiving data. After a port is
opened, keep "O_EN" on. Set off "O_EN" when you want to change the target station, for example.
When "O_EN" is set off, the port is closed and data cannot be sent or received.
If the open processing is failed, "O_ERR" is set on for one scan and an error status code is stored in the open error status (RAS
+0).
To open a communication port, follow the procedure below.
1) Set the following FB terminals: "MODULE_NO" (module No.), "IP_ADD" (destination IP address), "MODE" (communication
mode), "SUB_MODE" (communication submode: fixed to 0) "RPORT_NO" (destination port No.), and "SPORT_NO" (source
port No.).
2) Turn "O_EN" of the FB to off and then on again. (Keep it on.)
3) -1
When a port is normally opened and connection with the target station is established, "O_OK" (open complete) is set on.
3)-2
If the open processing is failed and connection with the target station cannot be established, "O_ERR" (open error) is set on
for one scan and an error status code is stored in the open error status (RAS +0).
Open parameter setting
Open request
(O_EN)
When normally opened
Open complete
(O_OK)
When failed to open
Open error
(O_ERR)
Open error status
(RAS +0)
1)
MODULE_NO, IP_ADD, MODE, SUB_MODE, RPORT_NO, SPORT_NO
Set ON by application
2)
Connection with the
target station established
3)-1
Ready for sending/receiving
data with the target station
3)-2
Open failed
1 scan
"00"
"Error status code"
S-13
Set OFF by application
Connection closed

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Na3la-et1

Table of Contents