Author Topic: E10-npn RS232 Communication  (Read 14362 times)

lyndon

  • Newbie
  • Posts: 10
  • I love YaBB 1G - SP1!
    • View Profile
E10-npn RS232 Communication
« on: April 07, 2003, 08:05:23 PM »
Can we make the E-10 plc as a slave to communication device such as modem and wireless phone?  

Does the internal output can be used to send ACSII commands to the host? What set of ACS ii host link commands does it contains?

Regards,

Lyndon
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: E10-npn RS232 Communication
« Reply #1 on: April 08, 2003, 11:44:55 AM »
E10 is not suitable for the applications that you described. Try a T100MD888+. It is extremely versatile and can easily handle what you want to do.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

lyndon

  • Newbie
  • Posts: 10
  • I love YaBB 1G - SP1!
    • View Profile
Re: E10-npn RS232 Communication
« Reply #2 on: April 08, 2003, 02:09:27 PM »
How about if AT commands can be communicated to the E10-npn? IF not, does the H-series can handle ACS II or
AT commands?

Due to the limiting the budget and making it approvable for prospective customers, I am thinking if the E10-npn can do it.

Nevertheless, does the T100MD888+ understand AT commands used by Modems and wireless phones?

Please let me know.  Lyndon
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: E10-npn RS232 Communication
« Reply #3 on: April 08, 2003, 02:49:11 PM »
Modem don't usually send AT command to the PLC. It is the PLC that send AT command to the modem.

A $199  T100MD888+ can format whatever AT command needed and send via the serial port to the modem. It can also interpret any incoming text string or binary data in whichever way you want.  It is fully under control by your TBASIC program.

« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

lyndon

  • Newbie
  • Posts: 10
  • I love YaBB 1G - SP1!
    • View Profile
Re: E10-npn RS232 Communication
« Reply #4 on: April 08, 2003, 03:05:21 PM »

So there is no way.  The reason i like the E10 is because of its small size and for the few outputs, say 3-4 outputs, needed for my project. And the E10 can operate on a 12VDC supply, which I am not sure if the T100 MD888+ can work with.  I foresee to use it in a car environment. I don't need the analog power of the MD888.  I believe the power of the TBASIC to mov and manipulate data memory to communicate with the RS232 and the modem.

So the RS232 of the E10 npn is only for the TRILOGI programmer's connection.

« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: E10-npn RS232 Communication
« Reply #5 on: April 08, 2003, 04:53:58 PM »
That's right. E10-npn RS232 port is only meant for programming via our proprietary software. There isn't a published set of communication protocol for the E10.

The T100MD+ PLC can operate at 12 to 24VDC.

« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

lyndon

  • Newbie
  • Posts: 10
  • I love YaBB 1G - SP1!
    • View Profile
Re: T100MD+ PLC /RS232 Comm
« Reply #6 on: April 09, 2003, 09:55:09 PM »
Ok. With the T100MD+ as the solution. ?Pls. confirm if would communicate with Modem (null -modem connection bet. DCE (T100MD+) ?and DCE (Modem) using AT commands.

Say, when considitions are fulfilled this CusFn would be called.

Print #2 "ATO" ?       'Initial Communication with Modem
Print #2 "AT+6567418892"      'Dials to call  Singapore

Does this quoted strings would be in ACSII prior sending it to Comm port#2 and convert it to binary?

Please let me know. ?Lyndon
« Last Edit: December 31, 1969, 04:00:04 PM by -1 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: E10-npn RS232 Communication
« Reply #7 on: April 10, 2003, 06:43:23 AM »
T100MD+ has two comm ports: comm1 is RS232 and comm3 is RS485. ?There is no comm2 for T100MD+ (comm2 is only available on T100MX+).

So your statement should be

Print #1 "ATO" ? ?'Initial Communication with Modem
Print #1 "ATDT6567418892" 'Dials to call ?Singapore

Of coure you need to add the outgoing international calling code (011 in USA) before you can call an international number such as the above.

The PLC will send the above string out via the COMM1 port to the modem. We have sample program in the "usr\samples\FileService_modem" folder that connect the PLC to a remote TLServer via modem. Please check out the following link for more info:

http://www.tri-plc.com/TLeval/Help/plc2modem.htm


 

« Last Edit: December 31, 1969, 04:00:04 PM by -1 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

lyndon

  • Newbie
  • Posts: 10
  • I love YaBB 1G - SP1!
    • View Profile
Re: E10-npn RS232 Communication
« Reply #8 on: April 10, 2003, 04:42:15 PM »
Thanks for the correction.  I found when I further read the MD manual. Only Comm #1 and #3 is available.  Line 2 should be

Print #1 "ATD+6567418892" 'Dials to call  Singapore  
 
I plan to use a wireless modem and its manual says "+" and not mentioned the "T".  I would read the help page.

I also want to know about the use of double quote " xxxx ";" ..."  How do we handle this the the ACSII would not intepret it as two separate quotes.  This is more with the CR (carriage return) interpretation of my intended modem to be used.

Thanks alot anyway.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: E10-npn RS232 Communication
« Reply #9 on: April 10, 2003, 05:04:27 PM »
The wireless modem may have its own set of AT command different from land line modem. There is no problem sending ATD+ if that is the requirement.

You can use CHR$(n) where n is the ascii code of the
character that you want to use to send out.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS