Jump to content

Break Signal? No response after Init Protocol FB


cea

Recommended Posts

Hi!

Ascii and binary requests from PC to V350PLC via serialport (direkt|gsm-|landline modem) works fine with my VB.Net App,

based on Vision Communication.pdf!

The response is, what i asked for....

But on "Alarm" the PLC must connect the sleeping PC-COMPort for pop-up an ugly, red window.

So i added to the ladder a Protocol FB to Com2 . The Init of this FB is normaly realized with SB2. For the test

i used the "F4" key.

If alarm-MB rises the PLC calls via Modem at COM2 and "Protocoll Send" well-behaved the PC and sends his Message...if it's done,

"HangUpFB" terminates the line.

The Problem:

After initializing the Protocol (PCOM)FB there are no responses for any following requests from my .Net App.

Re-initializing of the COM2 FB terminates the line and skip the Protocol FB out. After that and recall the PLC, the requests generate responses but

ProtocolSendFB doesnt work. I don't believe that this is a way...

Testing the VB.Net example with the unitronics CommDrive DLL:

It works fine, without the problems described above, but i don't find the way how to implement the AT- commands for connections via modem...

Connecting via VisiLogic "online Test "( F9) ...send break signal---connecting...

-works!

The Questions:

- Defeat the PLC-COM with a "break signal"? What is the Code for?

- Whats behind the Function of SB 330-333

and

-How to use commDrive.dll (serial() Class) with modems? (atd+49123456....)

Regards

Christoph

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...