Jump to content

cea

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About cea

  • Rank
    Newbie
  1. Hi, I'm trying to connect a Remote V350 with a Enfora GSM Modem. This works correct with VisiLogic Modem Services and "Online Test" Now i want to do this via a Python Script: 1. prepare the Modem as "PC Modem" with VisiLogic Modem Services. 2. run my Script: configure ComPort (9600,8,N,1), test some AT-Commands => OK 3.Dialing the Remote Device: ATDT+49123.... 4. Waitig for Response: "CONNECT" => OK 5. After "CONNECT": Wait 1sec, send my Request as Byte-Sequence "b'/01RCF6\r'" 6. Waiting for Response (Date and Time) but there is no Response! (Timeout 65sec) The same Request works on a local, direct, serial connected PLC without any problems! What is wrong? Are there any other commands necessarry before i send my Byte Message? Thank you Christoph
  2. 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
×
×
  • Create New...