DDE Poke problem
"Everett Mills" <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <1910058F54FE504F8CCBD840ED2B822B8BE117@nbpdc-fs1.corpnbp.nationalbeef.com> |
Guys-
We have been using 4J's 3.2 and RSLinx DDE to communicate with
Allen-Bradley PLC 5's for several years. We have recently installed a
couple of Allen-Bradley ControlLogix PLC's, but we are having difficulty
talking to them.
Here is a scrap of our DDE code:
CALL DDEPoke(linksrvr clipped, linktopic clipped,
linkitem1 clipped, trlyval)
RETURNING linkstat
IF NOT linkstat THEN
CALL DDEGeterror() RETURNING errmsg
LET string = "echo \"", errmsg clipped, " >> test.file"
RUN string
END IF
Linksrvr = "RSLinx"
Linktopic = "Staging" (this is a valid DDE tag we can use with visual
basic)
Linkitem1 = "PreFab_Trolley_ID[0]"
Trlyval = 161685 (a trolley ID)
When the DDEPoke executes, it returns this message in errmsg:
"invalid command name \"0\"
Has anyone seen this and possibly have a workaround for it?
--EEM
Everett E. Mills
Systems Administrator/Programmer
National Beef Packing Co., LLC.
P. O. Box 539
Dodge City, KS 67801-0539
Voice: (620)338-4288
Fax: (620)338-4335
E-Mail: [email protected]
image001.gif
(image/gif, 5.2 KB) - not displayed
image002.gif
(image/gif, 978 B) - not displayed