Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mullacott

Pages: [1]
1
Technical support / Re:CRC problems
« on: December 19, 2011, 05:40:01 AM »
Thanks. I have been playing with this for some time with not much joy. It is great to see how it should be done. Your code works and is now monitoring our heating in the house. This means when I am away I can see what is happening and make changes. Thanks again

2
Technical support / CRC problems
« on: December 17, 2011, 03:12:03 PM »
 I am writing on a nano a communications package that will talk to a Heatmister RS485 room stat. I have the communications working fine except I am having trouble with the CRC CCITT (0xFFF) checksum. I have to use an online calculator to find the CRC and enter it by hand. What I need is to be able to calculate in the code the CRC. The built in CRC16 in TBASIC give the wrong answer. Has someone done this and can help.  Example of data frame is ? 03 0A 81 00 00 00 FF FF? and then I add a CRC of ?8A 86? low byte then high byte.

3
Technical support / Re:Nano 10 Email
« on: November 29, 2011, 11:11:44 PM »
I have spent a long time working on the problem now knowing that I should be able to get the email to work. I found in the worked example, that I have to remove the error checking part and increase the time delay by 10 fold between each PRINT#4 commands. Also I was using register Z elsewhere in my code (the main problem). So now the email works.
Thanks again for all your help it is great to know there is such good help for such a great little PLC.

4
Technical support / Re:Nano 10 Email
« on: November 28, 2011, 10:30:24 PM »
Thanks for your quick response. I am with freeserve which is now orange. I use port 25 with outlook on my pc. On the pc I uses <domain name>.freeserve.co.uk@fs if I use telnet it response that it fails but if I uses smtp.freeserve.com I get an ip of 193.252.140:25. When I put this ip with no authentication used into TLserver it works 3 out of 4 times but only to the freeserve email address (I can live with that because this address could forward it).

The first part of the code is:
A$_SMTP_Server =  "193.252.22.140:25"
B$_Send_Email = "FName LName <simon@martinslade.freeserve.co.uk
C$_Receive_Email = "FName LName <simon@martinslade.freeserve.co.uk
D$_Subject = "Test Email Subject"
E$_Domain = "martinslade.freeserve.co.uk"
     
V$ = ""                                                   
W$ = "martinslade.freeserve.co.uk"
X$ = "XXXXXXXX"

F$_Body_Line1 = "Test Email line1"
G$_Body_Line2 = "Test Email line2"
H$_Body_Line3 = "Test Email line3"
I$_Body_Line4 = "Test Email line4"



IF Z > 16                                              .
 Z = 16
ENDIF

CLRIO EMAIL_SENT
CLRIO EMAIL_FAILED

CALL TCP_Email

5
Technical support / Nano 10 Email
« on: November 28, 2011, 01:25:08 PM »
I am having a problem getting a Nano 10 to send out an email. I have a Nano 10 connected to a few MODBUS power sensors and a Weintek touch screen over MODBUS. The PLC is connected to a router and there is no pc on the system so I canot use TLserver. I have used the worked example ?
 SEND AUTHENTICATED EMAILS DIRECTLY FROM THE PLC USING TCPCONNECT?. I get a fail message back. I think the problem is my isp is blocking emails coming in on their port 25 and 587. I have tried telnet ?username? and the reply says can not open host on port 25. Is there anyone who has got this to work with their isp and if so who are they using. Or is there a clever work around.

Pages: [1]