10-22-2010 09:30 AM - edited 10-22-2010 09:30 AM
Hello,
I'd like to connect a NI Smart Camera with a S7-300 PLC over RS232.
I have a few questions:
Best regards
Matthias
10-26-2010 06:25 AM
Hi Matthias H,
there are several possibilities how to implement the required feature: If you're using the Vision Builder to configure your SmartCamera, you could either use Modbus, TCP I/O or Shared Variables.
The main issue the is how to get this data connected to the PLC: I know that there's a Modbus library existing for Step7, but never worked with that. TCP I/O might work if you're PLC provides an Ethernet CP. The easiest way would be to use Shared Variables: You could create and write to this variable using the Vision Builder. You could then bind this variable to an OPC-tag defined on the PLC. The disadvantage of this method is that it requires the use of an OPC server.
Using RS 232 might be quite complicated, as I don't know which protocol the Siemens PLC is using.
Regards,
Bernd
10-26-2010 06:53 AM
Hello Bernd,
I tried the Vision Builder and it work's great with RS232.
I can definie the telegram and RS232 is an industrial standard which the S7 can read.
Thank you for your reply.
Regards
Matthias
10-26-2010 07:04 AM
Hi Matthias,
thanks for the reply, good to hear that it works.
As I did some PLC programming in my previous life, I'm curious about your implementation: Are there any FB's or FC's in Step7 so that you can easily address the serial port?
10-26-2010 07:09 AM - edited 10-26-2010 07:10 AM
Hi Bernd,
no, there are no standard FBs or FCs. You have to implement this, but the implementation is not too difficult.
TCP/IP would be much more difficult (but there are several TCP/IP libraries on the NI server to communicate to the S7 PLC if somebody should be interested in it).
10-26-2010 07:27 AM
Thanks for the info!