Jump to content

Recommended Posts

Posted
Help. I am trying to use the positive edge of the 1 sec clock pulse SM0.5 to trigger a counter connected to Q0.0 I am not getting any output on Q0.0 I have tested the output and it is working correctly which leads me to a coding problem CPU S7/200 series model 226 DC/DC/DC Code is pasted below NETWORK 19 LD M0.4 A SM0.5 EU = Q0.0 NETWORK 20 LD Q0.0 LDN M0.4 CTU C1, +2 NETWORK 21 LD C1 R M0.4, 1 Can someone point me in the right direction here. I am not using the SM0.5 bit correctly. Thanks Jeremy
Posted (edited)
Hi Jeremy You will not see output Q0.0 turning on because it is only being pulsed for one scan. Each time the line becomes true the contact allows power to flow for one scan only. In your case this is in one second because SM0.5 is a 0.5 second on off timer. When M0.0 turns on you should see C1 count up to 2 in one second and then reset. Rodney Edited by Rodney

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...