User Tools

Site Tools


en-us_products:mp_studio:bit_control

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en-us_products:mp_studio:bit_control [2026/11/12 14:41] – created - external edit 127.0.0.1en-us_products:mp_studio:bit_control [2026/11/12 20:37] (current) – external edit 127.0.0.1
Line 3: Line 3:
 ====== MP STUDIO 2 · Bit Control Functions ====== ====== MP STUDIO 2 · Bit Control Functions ======
  
-The bit control functions are five functions (V1.4.0 and later). ''FF'', ''BSFT'', ''BRST'' and ''BSETN'' toggle bits, shift them one place at a time, or turn a range of them off or on at once, and the timer ''TFLK'' blinks with separately set ON and OFF times. Circuits that used to take several rungs, such as turning an output on and off with a single push button, tracking the position of products and rejects on a conveyor, or blinking a beacon, can be written with a single function.+The bit control functions are five functions (V1.4.0 and later): ''FF'', ''BSFT'', ''BRST'' and ''BSETN'', which toggle bits, shift them one place at a time, or turn a range of them off or on at once, and the timer ''TFLK'', which blinks with separately set ON and OFF times. Circuits that used to take several rungs, such as turning an output on and off with a single push button, tracking the position of products and rejects on a conveyor, or blinking a beacon, can be written with a single function.
  
 [[#examples|View examples]] [[#finding_and_inserting_the_functions|How to insert]] [[#examples|View examples]] [[#finding_and_inserting_the_functions|How to insert]]
Line 15: Line 15:
   * **Shifts one place at a time**\\ Each time the condition turns ON, ''BSFT'' shifts N bits by one place and puts a new value into the empty place.   * **Shifts one place at a time**\\ Each time the condition turns ON, ''BSFT'' shifts N bits by one place and puts a new value into the empty place.
   * **A whole range at once**\\ ''BRST'' and ''BSETN'' turn off or turn on all N bits from the start bit.   * **A whole range at once**\\ ''BRST'' and ''BSETN'' turn off or turn on all N bits from the start bit.
-  * **Separate ON and OFF times**\\ ''TFLK'' repeats turning on for the ON time and off for the OFF time.+  * **Separate ON and OFF times**\\ ''TFLK'' repeatedly turns on for the ON time and off for the OFF time.
  
 **On this page** **On this page**
Line 113: Line 113:
 ===== TFLK Flicker Timer ===== ===== TFLK Flicker Timer =====
  
-When the condition turns ON, ''TFLK'' starts with the output on and repeats turning on for the ON time and off for the OFF time. The output is the power that continues to the right of the block, and the contact of the timer in the TIMER cell (for example ''T5'') turns on and off with the same value, so other rungs can use the same blink.+When the condition turns ON, ''TFLK'' starts with the output on and repeats the cycle: on for the ON time, then off for the OFF time. The output is the power that continues to the right of the block, and the contact of the timer in the TIMER cell (for example ''T5'') turns on and off with the same value, so other rungs can use the same blink.
  
   * The current value of the timer in the TIMER cell is the time elapsed within one cycle. When it reaches the ON time plus the OFF time, it starts counting again from 0.   * The current value of the timer in the TIMER cell is the time elapsed within one cycle. When it reaches the ON time plus the OFF time, it starts counting again from 0.
Line 218: Line 218:
 ==== Example 3. Blinking a Beacon ==== ==== Example 3. Blinking a Beacon ====
  
-In this example, while the alarm input ''P4'' is ON, the beacon ''P34'' repeats being on for 0.2 seconds and off for 1.8 seconds (timer base 10 ms).+In this example, while the alarm input ''P4'' is ON, the beacon ''P34'' repeatedly turns on for 0.2 seconds and off for 1.8 seconds (timer base 10 ms).
  
   - In **Settings → Symbol**, register ALARM for ''P4'' and BEACON for ''P34''.   - In **Settings → Symbol**, register ALARM for ''P4'' and BEACON for ''P34''.
en-us_products/mp_studio/bit_control.1794462077.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki