mulderm

MrPLC Member
  • Content count

    188
  • Joined

  • Last visited

Posts posted by mulderm


  1. Hello, I use Microwin V4.0 for a S7/222 CPU. In the main programma I calling a subroutine(name grafcet) when I0.0 =´1´ for activating the subroutine. When I calling I want all the steps in the grafcet (M0.1to M0.6) setting to ´0´ and set the step M0.0 to ´1´. This must happening for 1 scan when I0.0 = ´1´ Who can help me how to program for this? mulderm

  2. You´re right Sergei. It only works with cell references in Excel. In Access it will works good with a variable name. The right code: sub test() dim channelnum as long Worksheets("DDE").Range("A1").value=150 channelnum=DDEInitiate("rslinx", "testsol") DDEPoke channelnum, "N7:0", Worksheets("DDE").Range("A1") DDETerminate (channelnum) end sub Thanks for the helping. mulderm __________________ Netherlands

  3. Hello, I have write the follow VBA-code in Excel: sub test() dim woord as integer dim channelnum as long woord=150 channelnum=DDEInitiate("rslinx", "testsol") DDEPoke channelnum, "N7:0", woord DDETerminate (channelnum) end sub When I run this code nothings happend in N7:0. Why does this not working? I have created a topic and that is working. mulderm

  4. Hello, In Excel I have the follow VBA-code: Const bit8 as integer = 256 dim channelnum as long dim woord1 as integer, hulpwoord1 as integer channelnum=DDEInitiate("RSLINX", "Topic") woord1=DDERequest(channelnum, "N7:0") hulpwoord1=woord1 / bit8 'giving type mismatch DDETerminate channelnum Problem: When I get the value of N7:0 (13112) I get a type mismatch error nr:13 in my code by the row hulpwoord1. Who knows the problem? I want to convert the Integer N7:0 to 2 ascii karakters. For N7:0=13112 LSD=8 and MSD=3 mulderm

  5. Hello, I use RSLogix 5. Now I have change for example 5 rungs in online edit mode. Places: rung 12 in programfile 2, rung 45 in programfile 6, rung 33 in programfile 7, rung 24 in programfile 4,and rung 22 in programfile 8. How can I selected all this rungs for in Test-mode? Must I step for step selecting the edits rung? mulderm

  6. Hello, In Excel I have place in cel A1 a topic: =RSLINX|'Testsol'!'N7:0' This works excellent, a change in N7:0 in PLC/5 change also in cel A1. Then I wrote the follow code in de VBA Module1: sub Auto() worksheets("DDE").Ondata="Start" end sub sub Start() channelnum=DDEInitiate("RSLINX", "Testsol") data1=DDERequest(channelnum, "N40:0") DDETerminate channelnum range("D1").value=data1 end sub When the value in cel A1 change, nothings happens. It looks that the Ondata event not working. What do I wrong? Greetings, mulderm

  7. Hello, I have make a DDE-topic in RSLinx als Unsolicited message. In RSLogix5 have I make a program with a MSG-instruction and when it's enabled sending N7:0, N7:1 and N7:2 to RSLinx. In Excel I have maked this hotlink, cel A1=N7:0, cel A2=N7:1 and cel A3=N7:2 in sheet "DDE". This works perfect. Now I have wrote some VBA-code: In thisworkbook: Private Sub Workbook_Open Worksheets("DDE").Ondata = "Start" End Sub In Module1: Sub Start msgbox Range("A1").value End Sub Problem: When I start the workbook the value in the cell is #N/B and then the procedure is broken and get a message "error 13 mismatch". When I have Reset this the value in the cells are 0. When I enabled the MSG in RSLogix5 I see in my MSGBOX in Excel "0" and the new value's are seeing in the cells. Starting again the enabled of MSG I get the old value seeing in my MSGBOX, but I will see the new Value. Who can help me this problem? NB I have use Unsolicited message to reduce traffic mulderm

  8. Hello, I have a PLC5 system with a 1771-A4B 16 slot chassis with a PLC5/25 processor, four 1771-ICD input (with 48DC supply), and four 1771-OAD output (with 110VAC supply). Now I want places two 1771-OBD output (with 24VDC supply) and two 1771-IBD input (with 24VDC suppy) in the chassis. Is this possible? Can the chassis work with different power supply´s for the modules? Greetings, mulderm

  9. Hello, I am a new user of the S7-200 Microwin software. I have wrote a program and now I will making a Status Chart to monitoring and changing variables. To create a Status Chart I must type all the addresses, a mistake is already done. Is there another and faster way to get the Addresses in the cells? There is no possibility to get automatically all the using adresses in the Chart? Greetings, mulderm

  10. I will first want to know how to configure the parallel I/O communications. When a produkt arrives in the machine I will send the selected image to the F160 and the F160 must detected the object and give an OK signal to a plc. Wich selected input-lines (24V dc) do I need? Second how to configure the RS232 communications using Hyperterminal to give commando´s to the F160 to select an image (max 1024)? I will using an Allen Bradley 1771-db/b communications module for the RS-232 communications to the F160. I must write a basic-program for this for the serial communication using AscII-commands (rs-232 protocol) to select an image. Hope this is clear.

  11. Is there somebody who have worked with the Omron F160 Vision System? I want to communicate with this with the parallel I/O or the RS-232. How to make RS-232 connection with the Allen Bradley basic-module 1771-DB/B? Greetings, mulderm

  12. Thank you guy´s for the information. I´ve got a idea to do this. In Access I set 500 records with the product-numbers. For each product-number I give a integer-number (bit-patron). These integer-number will I send to the PLC/5 (example N12:0) to do an action. First when the product-number arrived in the PLC I must start a macro in Access who choose the right integer-number for this product-number. How to write this macro in VBA, must try. Any suggestion? mulderm

  13. Hello, I have installed on a Windows NT V4.0 pc system RSLinx profession V2.42. Now I connected a 1770-kf2 communication module on the com 1 port (serial) to communicate on a DH+ network with an Allen Bradley PLC5/25 processor. When I choose ´Automatic Configure´ in the configuration of RSLinx I get the message "Check your cable". I can not connected to the network. The cable and module are correct because when I connected it to my notebook with Windows 98 installed on it, there is no problem. Who can help me? There is also Novell installed on the PC. mulderm