Jump to content

Reading data from PLC S7-222


Recommended Posts

Guest [Beer]
Posted (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 by [Beer]

Posted
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.
Guest the_coco
Posted
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
Guest M. de Vries
Posted
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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...