Author Topic: ACS II Command of Wireless Modem  (Read 11459 times)

lyndon

  • Newbie
  • Posts: 10
  • I love YaBB 1G - SP1!
    • View Profile
ACS II Command of Wireless Modem
« on: April 14, 2003, 05:27:52 PM »
One of the commands to be send out by the TD100M+ PLC to the wireless modem via comm #1 is:

AT+CMGS=<index>,<tel.no.><CR><LF>data<Crtl+Z>

Where <Ctrl+Z> means end of data message

Is this the right interpretation at the PLC Print Command?

Print #1 "AT+CMGS=1, 1234567"
Print #1 "Hello World ^Z"

As the print command adds CR code, what about the LF (line feed) how do we handle this +CHR$(&H0B)

Also I found that Crtl+Z in Dos Mode is shown as ^Z. Does the ACS II Code intrepret Crtl a ^?

Please let me know.

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

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: ACS II Command of Wireless Modem
« Reply #1 on: April 14, 2003, 06:36:51 PM »
Use CHR$(n) to send non printable character. For what you want to do, execute the followings:

E.g. Print #1 "AT+CMGS=1, 1234567"+CHR$(13)+CHR$(10)+ CHR$(26)
« 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: ACS II Command of Wireless Modem
« Reply #2 on: April 14, 2003, 07:29:09 PM »
Thanks. Checking further into the ASC II Table.
Char ^Z means SUB for Substitute.
ETX means end of text showns as char ^C.


We can conclude that Ctrl+Z in ACSII name is SUB. So some manufacturers uses some non-standard interpretation of the ACSII table.

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

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: ACS II Command of Wireless Modem
« Reply #3 on: April 14, 2003, 08:28:50 PM »
For control character ASCII table, check the followings:

http://www.cs.tut.fi/~jkorpela/chars/c0.html
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS