callelundin

MrPLC Member
  • Content count

    43
  • Joined

  • Last visited

Community Reputation

0 Neutral

About callelundin

  • Rank
    Sparky

Profile Information

  • Country Sweden
  1. 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
  2. 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.
  3. 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?
  4. 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! :)
  5. READ PM750 VALUE and HMI Communication

    Is it using MODBUS communication like the PM710C ?
  6. 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!
  7. MAC E-50 HMI

    E100 works, but E50 might be harder!
  8. 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? :)
  9. 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.
  10. 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
  11. 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! :)
  12. 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
  13. 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! :)
  14. 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);
  15. 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