Yokogawa PC-Based MX100 User Manual

Page 244

Advertising
background image

3-9

IM MX190-01E

MX100 - Visual C

3

Flow of the Process
The flow chart shown below omits the declaration section.

Connect

Start the FIFO

Get the time

information

Disconnect

END

START

Get the data range

that can be retrieved

Declare the retrieval

of the measured data

Last data

number?

Last data

number?

Get the

measured data

Stop the FIFO

closeMX

getTimeDataMX

startFIFOMX

getFIFODataNoMX

openMX

talkFIFODataMX

getChDataMX

stopFIFOMX

Communication Process
First, make a connection. After making the connection, the functions become

available. As a termination procedure, disconnect the communication.

Note

• If there is no access for approximately three minutes, the MX100 drops the

connection. Drop the connection if you are not accessing the MX100 for an extended
time. Make the connection only when necessary.

• If you want to keep the connection open, run status retrieval.

Communication Connection
openMX("192.168.1.12" &rc)
The IP address of the MX100 is specified.
This statement implicitly specifies the communication constant for the

communication port number of the MX100.

FIFO Start
startFIFOMX(comm)
Starts the FIFO.

Retrieval of Data Range
getFIFODataNoMX(comm, 0, &startNo, &endNo)
Retrieves the range from the next data following the data retrieved last to the most
recent data of the specified FIFO number using data numbers.

3.2 Program - MX100/Visual C -

Advertising