MTomczak Posted June 24, 2015 Report Posted June 24, 2015 (edited) Hello everyone I have a problem with a simple code on the S7-1200.Program code is in the loop at specific time induce trigger on the camera Keyence (Q6.6).And at the same time check the response of the camera (I7.1).The problem is that I have given code does not work - does not turn on trigger the camera (no high state at the output), although when at work turn on the "Monitor" you can see that on the line appears high (the line gets green). Does anyone know the cause of this problem?Maybe some alternative solution? Greetings Mikolaj Edited June 24, 2015 by MTomczak Quote
Hero Posted June 24, 2015 Report Posted June 24, 2015 Hello MTomczak, What type of communications are you using to send your signal to the Keyence? What Keyence setup are you using, a vision system (with controller) or a vision sensor (IV series)? If it is Ethernet/Profinet then I would suggest downloading their manuals on their vision website for setting up communications. They also have the .eds files available for communications. This is for the IV series, this is a vision sensor that is only the camera. If it is directly wired I would check the voltage on the output card, then check that the wires are going to their intended (and correct) place for the Keyence trigger. TRG1 input is the triggering for camera 1 on the CV-X series, this is a vision system that includes a controller. Hopefully this helps a little bit, with more information someone might be more insightful Quote
MTomczak Posted June 25, 2015 Author Report Posted June 25, 2015 I'am using directly wired and a vision sensor ( IV series). I check voltage on output from PLC and I dont saw any changes. But why? This is little strange for me, because all time I see high state in TIA Portal on Monitoring mode. Maybe you can give me some extra code? Some alternative solution? Quote
Groo Posted June 28, 2015 Report Posted June 28, 2015 Providing the first contact is ON and the test contact is OFF, the circuit you have there will turn on your output for 300mS every second. You may not see the signal on your meter. Have you tried basic commissioning. Disconnect the trigger wire in the camera and force the output ON and then check to see if you have voltage at the output and at the camera? Quote
MTomczak Posted June 28, 2015 Author Report Posted June 28, 2015 Yes, contact "sprawdzanie_ok" is basic contact and it is always ok ( always = when I want to use this part of code ). Maybe You're right. Maybe 300ms is too short. I checked it and when I connect trigger for example just to some button - everything is good. How You make on S7-1200 code which is designed to create continuous pulse output with checking the condition? Quote
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.