<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									How to communicate with SMART via RS232? - Communications				            </title>
            <link>https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/</link>
            <description>Animatics Distributor Locator Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 14 Nov 2026 11:26:39 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>How to communicate with SMART via RS232?</title>
                        <link>https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1003</link>
                        <pubDate>Mon, 05 Jan 2015 03:06:53 +0000</pubDate>
                        <description><![CDATA[The code that i upload from the SMART is similar with the example parser as this code. The former user use parser model,so I need to know how to calculate &quot;tt&quot;,and then i can figure out form...]]></description>
                        <content:encoded><![CDATA[The code that i upload from the SMART is similar with the example parser as this code. The former user use parser model,so I need to know how to calculate "tt",and then i can figure out former user's code.It's important for me.And from my point of view, the parser is used for shakehands.It's used
for judging if the command that you send is right.But i am not sure about that, do you have any decuments about parser.I fell really confused about it.
    Now i can set al using your method,thanks a lot.]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>Jimmy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1003</guid>
                    </item>
				                    <item>
                        <title>How to communicate with SMART via RS232?</title>
                        <link>https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1002</link>
                        <pubDate>Mon, 05 Jan 2015 01:58:06 +0000</pubDate>
                        <description><![CDATA[You are correct with HEX81 and HEX20.  You don&#039;t have to deal with a Checksum... just straight ASCII (default is 9600,8,N,1).
To set the first array variable equal to 123... send HEX81al...]]></description>
                        <content:encoded><![CDATA[You are correct with HEX81 and HEX20.  You don't have to deal with a Checksum... just straight ASCII (default is 9600,8,N,1).
To set the first array variable equal to 123... send HEX81al=123HEX20.]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>csearcy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1002</guid>
                    </item>
				                    <item>
                        <title>How to communicate with SMART via RS232?</title>
                        <link>https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1001</link>
                        <pubDate>Mon, 05 Jan 2015 01:41:28 +0000</pubDate>
                        <description><![CDATA[Thanks a lot.So if i want to send a message, this message should start with HEX81(motor1),and end with HEX20(space).And if i send &quot;END&quot; via terminal,it will prefix 81 in front of END and add...]]></description>
                        <content:encoded><![CDATA[Thanks a lot.So if i want to send a message, this message should start with HEX81(motor1),and end with HEX20(space).And if i send "END" via terminal,it will prefix 81 in front of END and add 20 in the end automaticly?
    In this code variable tt means Command-Only Checksum. How can i calculate "tt"? And the same queation about "ss","zz".
    al is P,al is V,al is A. How can i send data to al,al,al?]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>Jimmy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1001</guid>
                    </item>
				                    <item>
                        <title>How to communicate with SMART via RS232?</title>
                        <link>https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1000</link>
                        <pubDate>Mon, 05 Jan 2015 01:01:25 +0000</pubDate>
                        <description><![CDATA[You should be able to send all of the commands needed with the OMRON serial module without using Data Mode and parsing.  Leave the SmartMotor in command mode(default... no OCHN command neede...]]></description>
                        <content:encoded><![CDATA[You should be able to send all of the commands needed with the OMRON serial module without using Data Mode and parsing.  Leave the SmartMotor in command mode(default... no OCHN command needed).
If the motor has an SADDR1 command... then the messages to that motor need to be prefixed with 0x81.  You can open up the "nose" icon in the SMI2 software to see exactly what is being sent with commands.]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>csearcy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-1000</guid>
                    </item>
				                    <item>
                        <title>How to communicate with SMART via RS232?</title>
                        <link>https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-261</link>
                        <pubDate>Mon, 05 Jan 2015 00:37:58 +0000</pubDate>
                        <description><![CDATA[hi,csearcy,I need to communicate with SMART via RS232.Now I can build a link to SMART and also download my code.Now I want to talk to SMART in using OMRON serial module. OMRON PLC can send a...]]></description>
                        <content:encoded><![CDATA[hi,csearcy,I need to communicate with SMART via RS232.Now I can build a link to SMART and also download my code.Now I want to talk to SMART in using OMRON serial module. OMRON PLC can send a message in ASCII HEX.
    Unfortunately， I don't know how does SMART restore the message if I send a message in ASCII via RS232.Which command should I use to get this message in SMART code.
    I have an example parser.The code is as below.I don't understand how to calculate the Main Checksum--"ss",Command-Only Checksum---"tt",Incoming Checksum--"zz".Is is automatic to calculate checksum after i send the message?




SADDR1
ECHO_OFF
PID4
KP=100
KD=500
F
A=1600
V=4000000
MP
mm=1   //Minus Flag to one
ss=0   //Main Checksum
tt=0   //Command-Only Checksum
nn=0   //Input Number to zero
yy=0
zz=0
al=0
al=0
al=0
al=0
p=0
q=104
ab<br>=0
OCHN(RS2,0,N,9600,1,8,D)
C10
IF LEN
  vv=GETCHR
  IF yy==0
     ss=ss*2
     ss=ss+vv
     ab=vv
     q=q+1
     ab=0
  ENDIF
  IF vv&lt;33
    IF yy
       zz=nn
    ELSEIF nn
       al<br>=nn*mm
       nn=0
    ENDIF
    SWITCH tt
    CASE 1173
      GOSUB100
      BREAK
    CASE 1214
      GOSUB200
      BREAK
    CASE 500
      GOSUB300
      BREAK
    CASE 1239
      GOSUB400
      BREAK
    DEFAULT
      GOSUB500
      BREAK
    ENDS
    ss=0
    tt=0
    al=0
    al=0
    al=0
    al=0
    p=0
    nn=0
    mm=1
    yy=0
    zz=0
    q=104
    ab=0
  ELSEIF vv==44
    al<br>=nn*mm
    nn=0
    p=p+1
    mm=1
  ELSEIF vv==126
    al<br>=nn*mm
    nn=0
    p=p+1
    mm=1
    yy=1
  ELSE
    IF vv&gt;65
      IF vv&lt;123
        tt=ss
      ENDIF
    ELSEIF vv44
        IF vv==45
          mm=-1
        ELSE
          nn=nn*10
          uu=vv-48
          nn=nn+uu
        ENDIF
      ENDIF
    ENDIF
  ENDIF    
ENDIF
GOTO10

C100
PRINT("MOVING TO:",al,#13)
PRINT("P",al,"V",al,"A",al,#13)
PRINT("CCS:",tt,#13)
PRINT("TCS:",ss,#13)
PRINT("ICS:",zz,#13)
  IF ss==zz
    P=al
    IF al&gt;0
      V=al
    ENDIF
    IF al&gt;0
      A=al
    ENDIF
    G
   ELSE
    PRINT("CHECKSUM ERROR, TCS:",ss,"ICS:",zz,#13)
    q=104
    PRINT("CMD:")
    WHILE ab
      PRINT("ab")
      q=q+1
    LOOP
    PRINT(#13)
  ENDIF
RETURN

C200
  PRINT("STAT:")
  RS
  PRINT(#13)
  PRINT("CCS:",tt,#13)
  PRINT("TCS:",ss,#13)
  PRINT("ICS:",zz,#13)
RETURN

C300
  PRINT("ENDING...",#13)
  PRINT("CCS:",tt,#13)
  PRINT("TCS:",ss,#13)
  PRINT("ICS:",zz,#13)
  OFF
  OCHN(RS2,0,N,9600,1,8,C)
  END
RETURN

C400
  PRINT("ZEROING",#13)
  PRINT("CCS:",tt,#13)
  PRINT("TCS:",ss,#13)
  PRINT("ICS:",zz,#13)
  O=al
RETURN

C500
  PRINT("ERROR",#13)
  PRINT("CCS:",tt,#13)
  PRINT("TCS:",ss,#13)
  PRINT("ICS:",zz,#13)
RETURN
END]]></content:encoded>
						                            <category domain="https://www.animatics.com/forum/communications/">Communications</category>                        <dc:creator>Jimmy</dc:creator>
                        <guid isPermaLink="true">https://www.animatics.com/forum/communications/how-to-communicate-with-smart-via-rs232/#post-261</guid>
                    </item>
							        </channel>
        </rss>
		