logo Welcome, Guest. Please Login or Register.
July 18, 2019, 11:37:41 AM
Home Help Search Login Register
 News: You can search the forum for answers to your question in a previous discussion. Please click on the "Search" button above and enter the keyword to search. To get to the full discussion of a listed message, please click on the TITLE of the message listed in the search listing.

  Internet PLC Forum
  General Discussions
(Moderator: support)
  settimer sv
? previous next ?
Pages: [1] Go Down Reply Notify of replies Send the topic Print
   Author  Topic: settimer sv  (Read 368 times)

Posts: 19

I'm a llama!

View Profile
settimer sv
« on: November 23, 2018, 10:29:17 PM »
Reply with quote

I have been using SETCTRSV 6, DM[100] and entering a value via touch screen.
Will SETTIMERSV 7, DM[101] work as well.
Report to moderator   Logged
Global Moderator

Posts: 3090

View Profile WWW E-Mail
Re:settimer sv
« Reply #1 on: November 24, 2018, 09:28:12 PM »
Reply with quote

Yes both of these are TBASIC codes to set the timer and counters preset values.

Note that for Fx class PLCs the changes are immediately non-voilatile since they  are stored to the FRAM memory.

For FMD and Nano-10 you will need to run the SETSYSTEM command to store these new values to the flash memory. So it is not recommended to make changes to these set values very frequently as it will affect the SCAN time due to the need to erase a bank of flash memory and then backup the whole bank to the flash memory.

One other way to start a timer or counter in TBASIC is to assign their PV to a value.

TIMERPV[ tim1 ] = DM[100]
CLRIO  tim1  ' Timer #1 label name is tim1.
Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
Pages: [1] Go Up Reply Notify of replies Send the topic Print 
? previous next ?
Jump to: 

Login with username, password and session length

Powered by MySQL Powered by PHP Internet PLC Forum | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!