Publication 1404-UM001D-EN-E - October 2004
C-16
Sample Applications
The range
Sheet1!D7:D14
is the write source range and the read target
range. The
Read
graphic element is associated with the following VBA
script or macro:
Sub ReadDateAndTime()
'Open DDE link; the first argument is the application we
'want to DDE with. Second argument is the DDE topic name
'configured in RSLinx
RSIchan = DDEInitiate(“RSLINX”, “DF1_1404_123”)
'Read the date/time table from the PM3000 and put it in
'the excel sheet
Range(“Sheet1!D7:D14”) = DDERequest(RSIchan, “N11:0,L8”)
'Close DDE link
DDETerminate (RSIchan)
End Sub
The
Write
graphic element is associated with the following VBA script:
Sub WriteDateAndTime()
'Open DDE link
RSIchan = DDEInitiate(“RSLINX”, “DF1_1404_123”)
'Write data from the excel sheet into the PM3000
DDEPoke RSIchan, “N11:0,L8”, Range(“Sheet1!D7:D14”)
'Close DDE link
DDETerminate (RSIchan)
End Sub
Summary of Contents for 1404-M4
Page 6: ...Publication 1404 UM001D EN E October 2004 Table of Contents 4 ...
Page 26: ...Publication 1404 UM001D EN E October 2004 2 14 Product Description ...
Page 264: ...Publication 1404 UM001D EN E October 2004 C 10 Sample Applications ...
Page 278: ...Publication 1404 UM001D EN E October 2004 C 24 Sample Applications ...
Page 279: ...Publication 1404 UM001D EN E October 2004 Sample Applications C 25 Allen Bradley HMIs ...
Page 280: ...Publication 1404 UM001D EN E October 2004 C 26 Sample Applications ...
Page 285: ...Publication 1404 UM001D EN E October 2004 Sample Applications C 31 Allen Bradley HMIs ...
Page 304: ...Publication 1404 UM001D EN E October 2004 D 6 Technical Specifications ...
Page 324: ...Publication 1404 UM001D EN E October 2004 F 18 Powermonitor 3000 EtherNet IP Device Profile ...
Page 340: ...Publication 1404 UM001D EN E October 2004 G 16 Powermonitor 3000 ControlNet Device Profile ...
Page 354: ...Publication 1404 UM001D EN E October 2004 6 Index ...
Page 355: ...Allen Bradley HMIs ...