You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old October 8th, 2003, 06:57 AM   #1
Jezz
Member
United Kingdom

Jezz is offline
 
Jezz's Avatar
 
Join Date: Dec 2002
Posts: 370
DDE POKE to micro logix 1200

Hi ,
I've managed to get a DDEpoke comand set up to send the string data from cell A1 in an Excel sheet to ST15:0 in a Micro logix via RSLinx, can I do the same with an integer from Excel or am I right in thinking that all the info in excel is stored as strings?

The code behind a command button is:

RSIchan = DDEInitate ("RSLinx","ML1200")

DDEPoke RSIchan, "ST15:0", Range("A1")

DDETerminaye (RSIchan)

Thanks Jezz
__________________
Jezz
Eagles may soar but Weasels don't get sucked in to jet engines....
  Reply With Quote
Old October 8th, 2003, 07:24 AM   #2
lauu
Member
Denmark

lauu is offline
 
Join Date: Aug 2003
Posts: 82
DDE

Try looking in RSLINX "Help".

I found this!

Sub Word_Write()

'open dde link: testsol=DDE Topic

RSIchan = DDEInitiate("RSLinx", "testsol")

'write data thru channel

DDEPoke RSIchan, "N7:30", Range("[RSLINXXL.XLS]DDE_Sheet!D7")

'close dde channel

DDETerminate (RSIchan)


End Sub

Best Regards

beerchug
  Reply With Quote
Old October 8th, 2003, 08:49 AM   #3
KEN_KACEL
Member
United States

KEN_KACEL is offline
 
Join Date: Nov 2002
Location: NORTH COUNTRY
Posts: 152
/CODE
Private Sub ToggleButton15_Click()
'OPEN DDE LINK: NEW_TOPIC=DDE TOPIC
'MOVE A1 INTO B3:12
RSIchan = DDEInitiate("RSLINX", "COMPRESSOR")

'WRITE DATA THRU CHANNEL

DDEPoke RSIchan, "N7:100", Range("[COMPRESSOR.XLS]COMPRESSOR!A5")

'CLOSE DDE CHANNEL
DDETerminate (RSIchan)
End Sub

I USED THIS TO DOWNLOAD VALUES TO THE PLC.
I ACTUALLY FIRED UP THE EMULATOR AND DIRECTED MY TOPIC TO AN EMULATED FILE AND THEN TESTED THIS ROUTINE. WORKS GREAT.
--------------------------------------------------------
THIS STUFF HAS REALLY BENIFITED MY CUSTOMERS WHO DON'T HAVE A RS500 COMPUTER HANDY ALL THE TIME. I HAVE EXCELL SHEETS THAT DIRECT THEM TO I/O, SPECIALTY REGISTERS, GRAPHING STORED DATA, ECT. IT IS CHEAP EXCEPT FOR RSLINX (HEAVY) THAT YOU NEED.
------------------------------------------
I WOULD LIKE TO KNOW MORE ABOUT THIS DDE PEEK/POKE AND WHAT OTHER TOOLS MIGHT BE IN THE EXCELL TOOL BOX TO TRY. I LIKE THE ACTIVE X PUSH BUTTONS AND HAVE USED EXCELL CONDITIONAL FORMATTING TO CHANGE CELL COLOR BASED ON THE STATE OF A PLC BIT, (ALARMS, EDITS TESTING, BATTERY LOW, PLC PROCESSOR OK)
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Micro Logix 1000/1500 and Citect ras LIVE PLC Questions And Answers 3 September 27th, 2011 09:32 PM
Modbus & AB micro 1200 jimtech67 LIVE PLC Questions And Answers 2 November 24th, 2004 03:56 PM
Micro Logix 1000 Analog input comparision mikewood LIVE PLC Questions And Answers 5 June 21st, 2004 12:41 PM
micro logix 1500 micro LIVE PLC Questions And Answers 0 February 10th, 2004 06:26 PM
micro logix 1200 les73 LIVE PLC Questions And Answers 4 October 26th, 2003 11:07 AM


All times are GMT -5. The time now is 06:26 PM.


.