callelundin

MrPLC Member
  • Content count

    43
  • Joined

  • Last visited

Everything posted by callelundin

  1. CiCode quest! Open Excel file from a tag.

    Hey, thanks! I cant get the function to work! :/ i dont know why.. ? But thanks for the tip! :)
  2. CC-Link help needed

    Hey! Well.. Q series have a easy setup for CCL, in IEC anyway. But FX is easy to! :) I guess its only D and M you whant to exchange right? If you have 3 robots with 2 stations then the config will be Slave1 StationNo: 1 NoOfStation: 2 Slave2 StationNo: 3 NoOfStation:2 Slave3 StationNo: 5 NoOfStation: 2 Ill post a exampel program that works with 4 nodes first with 2 stations the other with 1 station, and at the bottom im moving the data from the CCL net to D and M. compiled and tested! :) Maybe it will help you? FINAL.rar
  3. CC-Link help needed

    If you are useing IEC Developer GX there is a good exampel here for CCL communication, ive used it several times. Its easy setup with functionsblock! Then if you get stuck, try to explain your problem and maybe i can guide you! Good luck! http://www.beijer.se/web/BExFilePileAUT.ns...;FILE/CclFx.ZIP
  4. Hey there! I have the same problem with one of my five STB in a plant, i run it on 30ms to get pulses (yes i need the fast scan) the STB is connected with a 10" CAT5 cabel to a switch and goes from there to another switch aprox 250m away, were its connected to the mainswitch to communicate with the PLC. All ther other STB runs great but this one is really bugging me. im watching the 10base LED on the STB and it should flash all the time but it dosent. it flashes like it should for maybe 15s then it stops, then it comes back again. Im thinking that maybe the cabel is to long from PLC to STB, runs through 2 switches and 250m of cabel. There is also 3 Schneider NSX that communicates through a TSX Gateway modbus->modbusTCP on that for end, but they works great. But with an lower IOscan rate. do anybody know the max cabel lenght for modbus tcp, and what to do? put an reapeater of some sort? rajsiyer: whats your distance in cabel from PLC <-> switch <-> STB ?
  5. Citect and Database connection

    Hey all! Like you all say, there is a lot of ways! I needed it to only use CiCode and i need it to be in an excel or similar dbase. This is how i made it work. Every time i activate the Write_log() i will get my two tags in a new row on a *.dbf file that citects create. Now i have it in a dbase and can add a timestamp to it if i whant to. :) Thanks for your suggestions and support!:) FUNCTION Write_log() INT hDev; STRING Name, Value; // Open the dbase device hDev = DevOpen("log"); //Write data DevWrite(hDev,Name); DevWrite(hDev,Value); //Close the dbase device DevClose(hDev); END
  6. Citect and Database connection

    Hey there! Im pretty new on Citect and i have a question, or some questions that i hope that you guys/gals can help me with. Im using Citect to collect Integer Values, and now i vould like to log them into a database. When reading helpfiles and manuals im getting a bit confused, this it what i have done so far. I have made a database called log.dbf and its located in c:\db\log.dbf, it contains 2 colums first Name,C,8 and second Value,C,8. This is done by Open Office Calc. In the ODBC setup of Windows controlpanel i have 3 datasources "dBASE Files, Excel Files and MS Access Database". There i have done a setup on dBASE Files and pointed the Name of source to c:\db\ This is the tricky part, in citect i've done a "Device" Name log Format {Name,8}{Value,8} Header Name File Name c:\db\log.dbf Type dBASE_DEV Comment Logfile (dBASE) And thats about it, im not sure im on the right track here, do i miss something for the connection? Im very "new" to this. Maybe somebody out there can point me in the right direction! Thanks people! :)
  7. System reset? CJ1M

    Hey, how do i do a system reset of the CPU? I have a CPU that says error, alm. But how do i resett it to factory settings? Thanks! Calle
  8. Problem solved, it was in the Citect.ini file, modbus initype is by default 2 and should be 3 for MODNET30 protocol to the M340 PLC. :D
  9. Hey there all! First of all, i really enjoy this forum. Allways friendly people to help beginners like myself! :D This is my first Modicon project ever so bare with me! :) The setup is like this. MASTER: PLC M340 with Ethernet modul. SLAVE1-5: STB I/O devices. SLAVE6: Veijo Citect First of all i setup the PLC and got communication to work with Slave1, using Ethernet. Now i whant to connect my 150tag SCADA system to the PLC so i see that it works aswell. Thing is, how do i do? I've done the setup on Citect with the Wizard, choosing M340 Ethernet, IP to the PLC and port 0 (default/blank). But how should i do in Unity Pro S? I pasted a picture on my networksetup that is workning with the first slave, could any kinde soul please stepme to how i should setup the next line to open communication to Veijo Citect? Thanks! :)
  10. Read invicual bit in a Word/Int on FX?

    It's a good thing with the bit r/w way. Feels just like S7.. :D
  11. Hey! Is there any function in IEC/gx to read e bit from a Int. I have a CC-link network that gives me digital signals in a INT. If X0 = 1 i get the decnr 1 in a int, if X1 = 1 i get decnr 2 in the int. If both X0 & X1 = 1 i get the decnr 3 in a int. So i need to read the bits of the inte to know what X? =1. In Q i use the TEST function to See if bit 1 = 1 in the int. But now im using an FX system. Is there any similar function, or maybe there is another way? I might be looking myself blind on the TEST option? Best Regards Calle
  12. Read invicual bit in a Word/Int on FX?

    Hey, it was an FX3U, i know you can use TEST and BSET in Q. Could you explain with an exampel maybe how you read or write to a D*.* bit? Is it like: LD D1.1 OUT Y1 LD D1.2 OUT Y2 or how do you read it? I guess its something similar to Siemens S7 way of adressing bits and ints. Best regards Calle
  13. Read invicual bit in a Word/Int on FX?

    Nevermind, i just rememberd i could use MOV INT K2M100 (so i get a 1 in M100>) and there i can see what BIT is on. :) There are diffrent ways in PLC! :D
  14. CC-Link problem.

    Thanks dude! That helped! :) Network is now up n running! :)
  15. CC-Link problem.

    There is? for parameters and everything? Could you quickguide me on the setup for a one slave one master system? to be clear, its an remote device station, both bits and words im having as a slave.
  16. FX3U-ENET PROBLEM

    Hey, thank for fast reply and help.. but .. didnt work either! :/ Im starting to think it might be a WIN problem, some goddam firewall, antivirus... thing.. :) I've conneted an E-terminal to the network and that one just runs great to the FX3U-ENET! :) So i guess the modul is workning, its just my laptop that is makeing a mess of it.. So i leave it for now.. next problem is an FnIO-S Ethernet IO hehe.. this will be fine!
  17. FX3U-ENET PROBLEM

    allso.. i cant ping it from the fx config program im loosing all packs, but i can ping it from cmd.exe! that to is stange! :)
  18. Hey folks! Im haveing a struggle with a Telemecanique OTB device, im trying to connect it to Vijeo Citec but i just cant get it to work. This is the setup Laptop with Vijeo Citect and a USB to RS485 converter running on COM 3 baud 9600 8/even/1 On the other side i have the Telemecanque/Advantys OTB 1S0DM9LP. The register that the OTB works with is 2000 X0-X11 for inputs and 2100 X0-X7 for outputs. As protocol im using the Twido/Modbus RTU (modbus 30). What adress should i use in the tags, and what more do i need to config to be able to read and write from/to the OTB device? Im trying around with all diffrent stuff like %MW and %M but i dont really know what im doing so maybe you guys could help me out! (p.s. is this device a twido unit) Best regards! Calle Lundin