Jump to content

Does GXDev have any command similar to Allen Bradley TT(timer timing) or DN(done) for timers ?


Recommended Posts

Posted
What do you mean by Timer Timing and Timer Done??? Do you need to know the actual value when the timer is started?? Yes this is possible, if you using timer 0 (T0) then you can just use T0 in the instructions you want to use: Like |--|X1|------------(T0 K100) |--|>= T0 K50|---[sET M0] X1 activates timer 0 and when it reaches the value of 50, M0 is set. For timer done see the next example: |--|X1|-------------(T0 K10) |--|X2|---|T0|-----(Y20) Here timer 0 starts when X1 is high and after it reaches K10 the output of timer 0 is activated. So Y20 becomes high after X1 is for K10 high and X2 is high.
Posted
The Allen Bradley timers (software) has three bits for each timer. TT (timer timing), EN (timer enabled), and DN (timer done). You can use any of these in other rungs.
Posted
using the GX IEC Developer we can see more relation in the timers of both PLC...see the image in the attachment... using the GX IEC Developer we can see more relation in the timers of both PLC...see the image in the attachment... using the GX IEC Developer we can see more relation in the timers of both PLC...see the image in the attachment... timers.bmp
Posted
The timers in Mitsubishi are set up a little differently than in AB. Take these rungs: --|X0|----(T0 K100)-- --|T0|-----------(Y0)-- When input X0 turns on, timer T0 waits for 100 time units (1ms, 10ms, etc. depending on the timer you choose), then turns on output Y0. As you can see, there are two elements to the timer. The coil, with which you enable the timer and set the time constant, and the contact which turns on when the timer reaches the time constant. The timer will not time unless the timer coil is turned on (enabled) by input conditions. The timer contact is made once the time constant has been reached. Thus the Mitsubishi timers operate very much like on-delay internal relays. Not knowing exactly how the AB timer bits operate, here's my best Mitsubishi "translation" of the AB bits: EN and TT - The timer times whenever it's enabled, and whenever it's enabled it is timing, so these bits are one and the same. Since the timer is enabled (and timing!) whenever the input conditions (X0 in example) are met, you can use the same input conditions as your EN/TT. DN - The timer contact turns on when the timer reaches the time constant, so the timer contact effectively operates as the DN bit. Now, there is a difference between non-retentive and retentive timers. Non-retentive timers reset themselves whenever the input conditions are not met! The timer will go back to zero, the timer contact (if previously on) will turn off, and the timer will wait for the input conditions to be met again. Retentive timers, on the other hand, hold their current value if the input conditions become false. When the input conditions are met again, the timer will continue from where it left off. You must use the RST instruction to reset the timer to zero and turn off the timer contact. Cycling power to the PLC will also reset the timer, but that's not usually recommended as part of standard operation! Which timers are which depends on the PLC you are using. The hardware and programming manuals have charts with that information. Hopefully that clarifies it for you. There's also another recent thread that deals with the same topic.
Posted
I put an example of code to create timer timing bits in the Downloads section here. Download my example program. it's for GX Developer, and shows how to write on-delay, off-delay, pulse, one-shot timers. It also shows logic for a timer timing bit and you already get the timer done bit (reference the T address as a contact).

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...