Ddeopenlinks; Ddepoke - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

DDE Commands
D.3.3 DDEOpenLinks
D.3.4 DDEPoke
Argument
Type
topic
String
Typical Example
channelname = DDEInitiate("Excel", "Sheet1.xls")
The Integer point 'channelname' is provided with a DDE link to the application
Microsoft Excel which is run by the executable filename 'EXCEL.EXE', and to
the file 'SHEET1.XLS' within that application.
Syntax
returnstate = DDEOpenLinks(channel)
Remarks
Argument
Type
returnstate
bool
channel
Integer
point
Typical Example
channelname = DDEInitiate("Excel", "Sheet1.xls")
DDEOpenLinks(channelname)
The DDEOpenLinks command enables points which have been configured to
communicate via DDE to begin data transfer. Data transfer between CX-
Supervisor and the application Microsoft Excel is automatically maintained
until the channel is closed either by Microsoft Excel or by the command
DDETerminate() using the Integer point 'channelname', or the command
DDETerminateAll().
Syntax
returnstate = DDEPoke(channel, "item", pointname)
Remarks
Argument
Type
returnstate
bool
Appendix D Obsolete Features
Description
This contains the name of the topic recognised
by the server application. Typically, a topic is a
document within an application. At runtime, the
topic must be open or a value cannot be
returned and an error is reported.
The topic may be left empty, which enables
documents to open remotely prior to making a
specified connection. The topic name 'System'
may be used to find out which other topics
within the server application are available.
However, this is dependant on the server
application supporting this topic.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
This is an integer point which contains the
return value of the DDEInitiate() command.
Both server and topic parameters applied to the
channel in the DDEInitiate() command must be
open or an error is reported.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
145

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents