MELSEC EZSocket I/O Server Users Guide

Show HTML Add to My manuals
54 Pages

advertisement

MELSEC EZSocket I/O Server Users Guide | Manualzz

5.6 Using the I/O Server Software with Microsoft EXCEL

When you are using the I/O Sever Software with EXCEL, specify the data with the following style in the cell.

= Application name | Topic name ! Item name

For example , if you set the Topic name to PLC1, and you want to access Data Register D0, specify the following in the cell.

= ezsocket | PLC1 ! D0

You need to use the DDE POKE command, macro function of MS-EXCEL, to specify the particular items. DDE

POKE command is as follows in MS-EXCEL

EXCEL Ver4

Chn= INITIATE ("EZSocket"," Topic name ")

= POKE (Chn," Item name ",Data_Reference)

=Terminate(Chn)

= RETURN()

EXCEL Ver5(VBA)

Chn = DDEInitiate("EZSocket", " Topic name ")

DDEPoke Chn, " Item name ", Data_Reference

Chn is the returned data by the INITIATE command.

Data _reference is the ID of the cell specified in POKE.

You must use the TERMINATE command to close channels because some applications have a limited number of channels.

You also need to make sure to use the TERMINATE command late enough so that the POKE command will run properly.

If you need to access Visual Basic, refer to DDE CLIENT included with this software. In regard to other ways to access, refer to DDESAMP.XLS included with this software.

# The DDE Request command cannot be used with Windows NT 4.0

- 41 -

5.7 Showing the contents of the I/O Server software

When the I/O Sever Software is accessing data, you can view the opening Topic name. You are also able to access the device name and range in the dialogue box.

Topic Name

Status = XX (OK : communicating NG : Cancel the communicating

The contents are the same as in the Item Status.

ErrorCode=XXXXX (Value of Item name ERROR is showed.

Simulated” is showed in case of simulation mode.

Device Name and Range

READ : Reading WRITE : Writing the Top address – the end address that is accessing

After the showing, “DUE” is showed sometimes but this is not communication error.

* If a communication error occurs, the Item Name STATUS ,ERROR changes and the error message is showed in

WWLOGGER.

* It takes sometime to be timeout, if it accesses to A-Buss Board without power on of PLC CPU or connecting cable.

*If you use MELSECNET2/10 Board, refer to the special link relay/special link register to check link status because READ of own device on board will not be error even if network goes down (breaking a wire or master station down). Refer to the MELSECNET Data Link Users manual about special link relay and special link register

- 42 -

advertisement

Related manuals