![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
|
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.... |
|
|
|
#2 |
|
Member
![]() 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 |
|
|
|
#3 |
|
Member
![]() 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) |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |