D
Divu
Guest
-> 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:
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.
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.