Guest [Beer] Posted July 23, 2004 Report Posted July 23, 2004 (edited) Hey ! I would like to read data from PLC (S7-222 DC/DC/DC 24V). I made an application (using Borland Delphi) which is able to communicate with PLC. I mean I have learnt how to send characters to PLC and receive some ASCII string back to PLC (reply) . Now I would like to read data from PLC. For example: I specify an address and DataType. Then I should send packet (request) to PLC and it should reply with another packet (value) For example: value := ReadPLCValue(Address, DataType); Value := ReadPLCValue('VB100', Byte); Btw: I would like to make my own OPC server. Thanks for helping [beer] Edited July 23, 2004 by [Beer] Quote
Crossbow Posted July 26, 2004 Report Posted July 26, 2004 Personally, I'd not reinvent the wheel. The new S7-200 OPC Server is easy to work with, and rather inexpensive. I just use the OPC servers from the various PLC manufacturers. But then the last time I wrote code for a computer was a bit of C and a bunch of COBOL and RPG in college. Quote
Guest the_coco Posted July 27, 2004 Report Posted July 27, 2004 Hello Chris, I'm just starting to develop an application with S7-222 and the only way I found to connected my VBA application to my PLC is MicroComputing from Siemens. Could you give me the name of its new S7-200 OPC server not expensive. thanks in advance Nicolas ------------------------------------------------ french Student and PLC beginner Quote
Crossbow Posted July 30, 2004 Report Posted July 30, 2004 The new package is called S7-200 PC Access, and in the US it lists for $295. Part number 6ES78402CC010YX0. Quote
Guest M. de Vries Posted August 3, 2004 Report Posted August 3, 2004 Hello, You can use the port of an s7-200 cpu as a serial ascii port to transmit en receive data. To do this use the system flag SM30.0, look up in ref. manual. With the TERM en RUN switch you can change back to normal PPI mode. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.