callelundin

MrPLC Member
  • Content count

    43
  • Joined

  • Last visited

Everything posted by callelundin

  1. CC-Link problem.

    Hey there everybody! I got a new issue im been workning on allday, Its an FX3U (again) thistime its connected to a CC-Link modul (FX2N-16CCL-M). And it need to talk to one Remote Device station (crevis NA-9131) with setup, one 8 DI and 2 AI. Its read only. And i have no clue where to start, im been using CC-Link on Q-system but that is allmost autoconfigured. Could anybody help me out how im getting hold of the memorys and registers of my Remote Device Station, maybe a guide or manual? Regard Calle
  2. Beginners guide to CX-programmer

    Hey there folks! Im just started my first CX-programmer project and i vounder if anybody knows where i can find a beginner guide, programming guide, quick guide or similar. I know my way around Step7, Modicon and Mitshubishi.. But in this tool i cant even find a libary with functions such booty Greather then, Pulse triggers, shift function.. im going crazy, i must have missed somthing! :D So if anybody knows about guide, i vould be glad! :D Cheers!!
  3. FIND function in Step7

    Hey! im working on a project were i use a shiftregister FC90 WSR. In this register i have 1300 int values that are shifted down on a pulse. Now to the problem, i have a area of around 200 int´s in the middel of this register, lets say int 500-700 were i vouldlike to find a certain pattern. So i vould like a function that can look between two adresses in the shiftregister and find the first adress that is equal to my specifyed pattern. Allmost exact funtion like the FC86 but whitout the initziallation "SRC" becuse i have no possibility to write something in the register. Is it possible to make this in someway? Regard Calle Lundin
  4. FX3U-ENET PROBLEM

    Hey guys/gals! I have this strange problem on my FX3U-ENET. ive configured the ENET unit like this: Modul 0 Operational setting! Communication data code: Binary code Initial timing: Allways wait for open IP: DEC 192.168.1.10 Send frame: Ethernet V2.0 TCP: Use the Ping Open settings! CH1: TCP, MELSOFT protocol My computer settings are: IP 192.168.1.2 Mask: 255.255.255.0 Then i transfer the setup to the FX3U-ENET modul through RS232. works fine, the im trying to test connect to the moduls ethernet gate with FXconf. Then this happens! :D SD/RD is blinking/twinkling at same puls. C1 is lightend up. and then nothing more... and i get the timeout. There are no errors on the modul, RUN, INIT and 100M is on green stable light. There is nothing more on the network, cable is ok. Then after a littel while after my connection test i get a COM ERR. I got to diagnostics and check the error log. Lates Errorcode: C035 Sub header: 0000 Commandcode: 0000 Connection: 0001 Local port: 5551 Destination IP: 192.168.1.2 Destination port: 1163 why the heck aint it running? any ideas and i will be extremly glad! :D
  5. why dont my analog input works?

    Hey all! Im in a bit of a confusing problem. I have an 315F- 2 PN/DP cpu with a AI8x14bits input card on (331-7hf01-0ab0). To this i whant to connect a peppler fuchs kfd2-crg2-ex1d signaltransmitter, http://www.pepperl-fuchs.us/usa/en/classid_13.htm?view=productdetails&prodid=32675 And to the transmitter i have connected a 2 wire pressureinstrument. Now the pressure instrument is working fine, sending its signal to the peppler fuschs transmitter. The transmitter needs to be connected to the AI on the PLC. If i messure between point 7 and 8 on the transmitter i have 18VDC and 6.5mA right now. But i cant get it connected to the plc... nothing happens?! I have downloaded everything with the HWconfig and enabel channals to 4DMU.. ( the transmitter have its own power supply at point 23 and 24 ) Then i starts the VAT but nothing changes. And all the LED are black. What am i doing wrong here?? i have 24VDC on 1 and 20 on the AI.
  6. Beijer E-1000 No protocol mode

    Hey. Im trying to learn the noprotocoll mode on e-terminal, I've connected to E1000 to an FX1N Started the Controll reg D300 and No controll mode on M300 then i've connected it to the RS232 com port on my laptop and on the rs232 port on the terminal. But what now? how can i send data by using for exampel the Hyperterminal. If i whant to send the number 55 to the controller... how do you do that?
  7. CITECT- wanna log data to *.dbf/excel/Ms Acces

    Write a script to combine a lot of values in one {Col}, or just multiple Devices? Otherwise i guess SQL vould be better, but then you need to setup an server for that! :)
  8. READ PM750 VALUE and HMI Communication

    Is it using MODBUS communication like the PM710C ?
  9. CITECT- wanna log data to *.dbf/excel/Ms Acces

    Then just make activate a Cicode that looks like this. Col1 = Your tag that you whant to logg FUNCTION db() INT hDEV; !! Open!!! hDev = DevOpen("Database1"); !! Write !! DevWrite(hDev,Col1); DevWrite(hDev,Col2); DevWrite(hDev,Col3); !! Close !! DevClose(hDev); END i think this will write your tags to diffrent colums on a *.dbf file everytime you activate the script! It will make a new row for every time, test and try!
  10. MAC E-50 HMI

    E100 works, but E50 might be harder!
  11. Q-series remote I/O?

    If the "only" function of the omron is this, then i vould remove the omron, put an cable from the relay output on the Qsystem and let it run the buzzers. Thats the cheepest thing, and probley the best! CC-link cable is expensive. 2x0,75mm2 is cheep. CC-link module and nodes are expensive, a relay is cheep.. get my point? :)
  12. CITECT- wanna log data to *.dbf/excel/Ms Acces

    Make an device, and just keep on going the {Col} it will make a column for every tag then.
  13. Hey! I whant to trigger a digitalalarm on citect when if commuication to PLC is lost. is there a function for this? I can read a bit (allways 1) on the PLC and put it in a digital alarm, but i vould prefer to use something else, do anybody have an idea? how do you boys/girls do? best regards cAllle
  14. Hey there! First of all, thanx for the help in my last three. I got my logg function perfect now, but now i stand before a new problem. I whant a button on my page that will activate a digital tag, lets call it "opentag", when "opentag" is high (1) i whant to open a file in Excel. The excel file is named rapport.dbf. Im played around with FileOpen function and DDE execute but dont know if im doing it right! Maybe somebody could give me a point "how to" do it and what i need to do it. I guess there is some simple way for this but i cant seem to figure it out. Flow: Push button on graphic page, button activate TAG, Tag activate CiCode function, CiCode open *.dbf in Excel. Thanks! :D
  15. CiCode quest! Open Excel file from a tag.

    Thanks! :) Yeah i actully do that in Global tags offen, but as you say, i maybe should use it allways instead! I'll try to think about it further on! :)
  16. CiCode quest! Open Excel file from a tag.

    Thanks everybody! I did it like Sleepy Wombat pointed me to.. They just edit a string in the graphic area example 08-08-10 then they push a button "Show me logg" that will set TAG_exec_logg_EON_kWh=1, works great! :D FUNCTION open() !! This function opens the loggfiles of the factrory !! STRING Temp1, Temp2, Temp3, Temp4; !! Putting TAGs toghter !! Temp1="C:\Program\Offic12\Excel.exe C:\db\EON\kWh\"; Temp2=TAG_sok_EON_kWh; Temp3=".dbf"; Temp4=Temp1+Temp2+Temp3; !! Executeing the searchway !! IF TAG_exec_logg_EON_kWh=1 THEN Sleep(2) Exec(Temp4,3) Sleep(2) TAG_exec_logg_EON_kWh=0 END END
  17. How To communicate citect and SLC 503

    What is a SLC503? What kind of protocoll can you use? serial communication? maybe if you tell us your setup it might be easier! :)
  18. CiCode quest! Open Excel file from a tag.

    Hey Sparky! I got this to work now. Im trying to use this in a multiple way i need to have "My_File.dbf" to be an variabel... so that the operater can choose what file to open. Is there in anyway posible to change the "My_File" part to an STRING Var? Something like this? Exec("C:\Program Files\Microsoft Office\OFFICE11\Excel.exe C:\My_Files\TEMP_STRING_VAR.dbf",3);
  19. Read bit from Word CITECT

    I dont know but i cant get this simpel thing to work! I must be stupid?! This is my code FUNCTION readbit() IF (ReadTagBit(Nu,2)=1) THEN tag1=1 ELSE tag1=0 END END It should work lite this... When the bit 2 on Integer variabel "Nu" is 1 i whant digital "tag1" to be 1. Whats wrong?? ARGH! :D
  20. Read bit from Word CITECT

    Hey, im cheep so i dont wanna spend tags on digital signals. So i vounder how i read a specified bit from a word. On my PLC i set the bit %MW54.1 and then i whant to read that bit in Citect with Cicode. I have a tag with %MW54 setup in the Variable list. Somthing like TAG1 = TAGMW54.1 ? Anybody have a clue, i looked att BitAND function but didnt understand it from the helpfiles!
  21. FileXXX in Cicode, lagging?

    Heya folks! Im logging some integers using "Dev" commands and im puting them in a temporary file. This works great! But then im trying to use "File" to copy, move, rename and delete the file. This is not working very good! Im using this code: !Here i copy the file to another location! FileCopy ("C:\Swegon\db\RapportT1kWh.dbf", "C:\Swegon\db\Lager_T1\kWh\RapportT1kWh.dbf",0); !Here i make a new name for the file to current date! FilePath=FileMakePath("",PathToStr("C:\Swegon\db\Lager_T1\kWh\"),SystemDatum,"dbf"); !Here i rename it to current date! FileRename("C:\Swegon\db\Lager_T1\kWh\RapportT1kWh.dbf",FilePath); !Here i delete the old file! FileDelete("C:\Swegon\db\RapportT1kWh.dbf"); All thoose 4 command i do with 1 trigger signal. And sometimes it works great and othertimes its takes two or three tryes. Is it becuse im doing the "file" command to fast? should i do one command and then wait a minut and then do the next? Do anybody have a similar problem? This im doing on 10 diffrent loggfiles, and its pretty good but it aint perfect! help? tip? :)
  22. FileXXX in Cicode, lagging?

    yeah guess that might be good! :)
  23. Cicode problem

    Do this! Make a variabel called HP, make it an INT. Make a cluster called Your_cluster Make a cicode FUNCTION Test() HP=666 END Go to events and add this Name: Test Cluster: Your_cluster Time: 00:00:00 Period 00:00:01 Action Test() *Leave the rest blank Go to computer setup Event setup mark the "Enabe events on this computer" mark the event that you just made "Test" Finish the computer setup Now got to graphic builder and make an analog numeric choose the tag HP SAVE ALL CICIODE, GRAPHIC AND SO ON! Complie and run. Now will citect set the value of 666 to your variabel everytime the event is actioned! :)
  24. Read bit from Word CITECT

    Thank you very very much everybody! :) :)
  25. CC-Link help needed

    Well, in the setup you have an Array of int's working with each slave "register from" and "register to" just make a move command. If you whant to read a register choose what int in the Array you whant to read MOV RegisterFromSlave1[0] TO D100 and if you whant to write MOV D101 to RegisterFromSlave1[1]. Easy as pie! If you whant the digital signals to memorys (bits) you just move the registerarray int that contains the digital signals to an memory in your plc. MOV DigitalFromSlave1[0] TO K2M100 for exampel. D = Register (Ints) M = Memory (Bits)