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

D

Divu

Guest
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.
 
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
 

Anhänge

  • ld-1.png
    ld-1.png
    6,7 KB · Aufrufe: 10
Zuviel Werbung?
-> Hier kostenlos registrieren
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
 
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
 
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.
 
Zurück
Oben