sapoleon
Member
Hi.
I have a new project, and it's in siemens S7. I can say that I'm having a hard time, because it's my first project with S7.
In the project, I read a Cognex camera through Profinet, I get a result, that is a numeric code in separate bytes. So... It's like a string.
The thing is, that I have to send to an HMI this value like a DInt, and I don't have any idea on how to begin. I started looking for the IEC FC37 but it seems that I have to make a string out of the series of bytes that i get...
I get the bytes in PIB261 to PIB269 (always 9 cyphers).
I will appreciate if someone can point me in the direction on how to make a string from the bytes, so I can try the FC37 and convert it to a DInt.
Thanks.
I have a new project, and it's in siemens S7. I can say that I'm having a hard time, because it's my first project with S7.
In the project, I read a Cognex camera through Profinet, I get a result, that is a numeric code in separate bytes. So... It's like a string.
The thing is, that I have to send to an HMI this value like a DInt, and I don't have any idea on how to begin. I started looking for the IEC FC37 but it seems that I have to make a string out of the series of bytes that i get...
I get the bytes in PIB261 to PIB269 (always 9 cyphers).
I will appreciate if someone can point me in the direction on how to make a string from the bytes, so I can try the FC37 and convert it to a DInt.
Thanks.
Last edited: