mulderm

MrPLC Member
  • Content count

    188
  • Joined

  • Last visited

Everything posted by mulderm

  1. Sorry for any confusion. The attach BMP.file is make with Logixpro-simulator. This is a plc slc-500 simulation program with using RSLogix500, I use RSLogix5. Thank you for the information quy´s. It help´s me a lot. mulderm
  2. Hello, I use a PLC/5 and RSLogix5 software. How Can I detect a input pulse (I:00/00) with some program-code? The pulse that I must detect is a false to true and then from true to false type. mulderm
  3. I have it, see attachment. I using a counter. mulderm Pulse.zip
  4. Calling Subroutine

    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
  5. Thank you for the helping. mulderm
  6. 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
  7. DDEPoke does not working

    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
  8. 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
  9. Thank you very much OkiePC for the information. I have tried it and I am understanding now. mulderm
  10. Hello Chakorules, I found the problem. I must make a workbook_open event in my THISWORKBOOK and place the follow code: worksheets("DDE").Ondata="Start" Because these must run a first time. mulderm
  11. 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
  12. 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
  13. Different I/O in chassis

    Thank you for the information. mulderm
  14. 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
  15. Making a Status Chart

    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
  16. Omron F160 Vision System

    Thank you for the information, it helps me a lot. Greetings, mulderm
  17. Omron F160 Vision System

    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
  18. Hello, Who knows what for protocol does the Basic module 1771-db/b use? Can they work with the XMODEM or ZMODEM protocol? I will use the basic module for communicate with the Omron F160 Vision System that use the XMODEM or ZMODEM protocol. Greetings, mulderm
  19. Omron F160 Vision System

    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.
  20. Omron F160 Vision System

    Do you have a sample code in Hyperterminal for example selected an image-number? How must I give the commando´s? Every sample I appreciated. mulderm
  21. Hello, I am using a PLC5/25 and Microsoft Access using DDE by RSLinx Professional. Now I want start a macro in Access when a bit, example B3/0, is "1". How must I do this? mulderm
  22. 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
  23. Thank you for all the information quys. I think that I install Windows 98 or XP. Windows NT 4.0 is to old for this. Greetings, mulderm
  24. 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
  25. I am hopeless. I have check the com 1 port: using hyperterminal and the Basic-module 1771-db/b; the com 1 port work correct. Deinstall RSLinx prof and install RSLinx Lite: same problem Why not communicate on Windows NT 4.0 and on Windows 98 works fine? Please help me. mulderm