Zuviel Werbung? - > Hier kostenlos beim SPS-Forum registrieren

Ergebnis 1 bis 5 von 5

Thema: [English] B&R newbie question about I/O mapping

  1. #1
    Registriert seit
    24.07.2014
    Beiträge
    3
    Danke
    1
    Erhielt 0 Danke für 0 Beiträge

    Standard


    Zuviel Werbung?
    -> Hier kostenlos registrieren
    Hello,
    Firstly, i am asking for help here because i coudnt find anything usefull elsewhere and i got recomended this forum to ask on. Unfortunatelly, i cant speak any deutsh, so i hope you will be able to help me in english.

    Regarding my problem, i connected B&R x20 cp 3585 to my computer using ethernet and a Cognex in-sight camera to it via Powerlink. Everything is fine and working, but i cant map variables to input/output channels. I got two channels - Control and Status which are 32bits length (UDINT type). When i try to add UDINT variable to it, after running aplication and starting monitoring it, the field PV value is "error".
    Both channels consists of 32 bits, where each bits is a different task - for example first bit of Control sets camera in a specific mode, and second bit makes camera acquire an image. On camera's manufacturer's site ive managed to find a note regarding powerlink connection, and it says:
    5. The enabled Channels can be mapped to system variables, as well.
    Note: Bit-level data, such as the Control and Status blocks, must be accessed by appending the bit position designator to the double-integer variable name. Direct mapping of the bit variables is not possible in this release.
    So i guess i have to somehow map each bit of both blocks to a bool type variable and then it should work, am i right? Now how can i do this? Or how can i in ladder diagram, set a Normally open contact to one bit from i.e. IDINT variable. I rember doing something like %variable.1, where variable was few bits length in some other PLC's.

    Thanks in advance for any help/advice.
    Zitieren Zitieren [English] B&R newbie question about I/O mapping  

  2. #2
    Registriert seit
    12.04.2010
    Beiträge
    300
    Danke
    22
    Erhielt 54 Danke für 52 Beiträge

    Standard

    Hello Divu,

    the Situation you describe is many times a result of this:

    you declare a variable and connect it in an iomap list. but this is not enough. you have to 'use' the variable in the source code at least once. maybe you only want to 'mention' it in the init-program,
    e.g.

    dint_var1


    see the screenshot for your second question

    dint_var1.3 processes bit-4 counting from 1 (0, 1, 2, 3)

    br
    BB
    Angehängte Grafiken Angehängte Grafiken

  3. Folgender Benutzer sagt Danke zu bits'bytes für den nützlichen Beitrag:

    Divu (24.07.2014)

  4. #3
    Divu ist offline Gesperrt
    Themenstarter
    Registriert seit
    24.07.2014
    Beiträge
    3
    Danke
    1
    Erhielt 0 Danke für 0 Beiträge

    Standard

    Thanks for reply!
    Simply displaying control.0 in ladder program Solved my problem and i managed to move on. Now Vision sensor comunicate with the PLC fine
    thanks

  5. #4
    Registriert seit
    12.04.2010
    Beiträge
    300
    Danke
    22
    Erhielt 54 Danke für 52 Beiträge

    Standard

    Hi Divu,

    please let me ask you a question about this setup.

    I have a somehow similar task - but I don't have a EPL camera (Cognex) but another camera that provides a video stream (rtsp --> tcp).

    I plan to merge it with EPL via an 8815 Gateway but I have no clue how to extract the videostream at the PLC (AR010). I need the videostream in the windows enviroment.

    And I think that you might have had the same problem to resolve ? Or do you use the camera feed inside (and only inside) the Automation Runtime ?

    I would appreciate it a lot if you could share a bit of your setup and solution with me.

    Thanks for your time
    BR
    BB

  6. #5
    Divu ist offline Gesperrt
    Themenstarter
    Registriert seit
    24.07.2014
    Beiträge
    3
    Danke
    1
    Erhielt 0 Danke für 0 Beiträge

    Standard


    Zuviel Werbung?
    -> Hier kostenlos registrieren
    sadly i dont think i can help you . Im just doing my internship and was told to make camera and plc communicate what you have helped me to achive. I have no clue or skills to help you.

Ähnliche Themen

  1. Step 7 Beispiel PID Regler als download (english?)
    Von AndreK im Forum Simatic
    Antworten: 3
    Letzter Beitrag: 05.02.2014, 08:52
  2. CoDeSys AT question
    Von kaputt im Forum CODESYS und IEC61131
    Antworten: 1
    Letzter Beitrag: 12.10.2012, 07:33
  3. OSCAT Manuals in english
    Von hugo im Forum Werbung und Produktneuheiten
    Antworten: 0
    Letzter Beitrag: 10.02.2011, 16:53
  4. Question about Hart communication
    Von Mickaleto im Forum Feldbusse
    Antworten: 1
    Letzter Beitrag: 20.04.2007, 19:09

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •