Jump to content

Recommended Posts

Posted (edited)
i am new to mitsubishi, need a little help. i need to compare the value in a 4 sec timer and make something happen if the timer is over 2 secs. how do you address this register? fx2n model Edited by homer874
Posted
Sergey is right, you use same name for bit timer done and for timer accumulator register. I never tried to compare timer accumulator directly but if that doesn't work, simply copy time to a register: [<> t0 D15]------------( ) ---| |---------[mov t0 d10]
Posted
IEC Developer allows you to compare accumulator values directly. Using IEC there are three "parts" to a standard timer: TC0 = Timer Coil of T0 TS0 = Timer Switch of T0 (closes when timer times out) TN0 = Accumulated timer value of T0. Therefore, you could use an expression like if TN0 >= 20 (assuming 100ms timers) then do something.
Posted
Hi homer, you can use in-line comparisons. In this compare, you can use K,H,K, KnX, KnY, KnM, KnS, T,C,D,V,Z. For ins. [= T0 D15]-------------() (Assume that Data15=2000 and T0 is 100ms timer) regards, untitled.bmp
Posted
In a timer compare, do not use the equals. It will only give you more troubles, just think about the scantime and the sequential program execution. If you want something to start after 2 seconds just write : -------[>= T0 K20]-----

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