DaveE Posted August 10, 2017 Report 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
Cam Posted August 10, 2017 Report 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?
DaveE Posted August 10, 2017 Author Report 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!
Cam Posted August 18, 2017 Report 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.
DaveE Posted August 18, 2017 Author Report 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!
DaveE Posted October 13, 2017 Author Report 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
MVP 2023 Ausman Posted October 14, 2017 MVP 2023 Report 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
Cam Posted October 15, 2017 Report Posted October 15, 2017 To clarify the part number for the Ethernet card is V200-18-ET2 or V100-17-ET
DaveE Posted October 16, 2017 Author Report Posted October 16, 2017 Sorry. Typo. Put it down to old age V200-18-ET2 was what I had issues with
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now