DaveE Posted August 10, 2017 Report Share Posted August 10, 2017 Good afternoon I am trying to send files through ethernet from the SD card. I have downloaded the FTP client example, and have modified it a little bit so it may work in my application. I will soon be modifying it again, so that it automatically connects, but at the moment I am happy to do things manually (well I would but I cant get it working.) What should be happening, is that I scan a barcode, which then creates a CSV file on the SD card (that bit is working!) Then what happens it takes me off to the FTP page. When I press the connect button, it is meant to connect me, but I get nada, nothing! Can someone tell me where I am going wrong? Thanks guys Code is attached to this message. The main routine initializes the card etc then I go to the FTP subroutine to do the rest version 20.vlp Quote Link to comment Share on other sites More sharing options...
Cam Posted August 10, 2017 Report Share Posted August 10, 2017 Dave, I've never tried connecting to an FTP server but I have connected to PC's with the PLC initiating communication. 1) does the SB 150 go high ever stating that the PLC is connected? 2)The protocol Scan FC in net one will only be active for 1 scan on the positive pulse of MB 100 so long as all the conditions in front of it are active is this the intended operation? or did you want it checking for incomming messages when you are connected? Quote Link to comment Share on other sites More sharing options...
DaveE Posted August 10, 2017 Author Report Share Posted August 10, 2017 Hi Cam SB150 does nothing at all, just sits there looking at me. SB151 and SB153 are both on, so I know I have an ethernet connection and on 2) that is my intention at the moment, will be changed if I can ever connect! Quote Link to comment Share on other sites More sharing options...
Cam Posted August 18, 2017 Report Share Posted August 18, 2017 Do you have The SDcard Explorer installed? If yes set it up to listen (Ethernet listen)on a port say 20275 and change the port in your tcp connect to match. Click ok the click listen. Set the IP the PLC is to connect to your PC's . Trigger the connection thru the PLC LOGIC if it connects SB 150 will set and you can browse the contents of the SD card in the ad card explorer window. This will let you test your connection logic. Quote Link to comment Share on other sites More sharing options...
DaveE Posted August 18, 2017 Author Report Share Posted August 18, 2017 Hi Cam Turns out that even the basic program, just initializing the card and then opening the sockets, the PLC isnt doing anything However when I run the same program in a Samba it works weird PLC is at Unitronics now being dissected I guess,, I have 2 doing the same thing! Quote Link to comment Share on other sites More sharing options...
DaveE Posted October 13, 2017 Author Report Share Posted October 13, 2017 Just for everyones info turned out that the ethernet cards V200-18-E5B were bad, all three of them, despite them being brand new Got new cards in worked without a flaw Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted October 14, 2017 MVP 2022 Report Share Posted October 14, 2017 Hmmm. For 3 to be duds would be very annoying! Cara? Does this mean there is a bad batch everyone should be made aware of? cheers, Aus Quote Link to comment Share on other sites More sharing options...
Cam Posted October 15, 2017 Report Share Posted October 15, 2017 To clarify the part number for the Ethernet card is V200-18-ET2 or V100-17-ET Quote Link to comment Share on other sites More sharing options...
DaveE Posted October 16, 2017 Author Report Share Posted October 16, 2017 Sorry. Typo. Put it down to old age V200-18-ET2 was what I had issues with Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.