Input Output Digital instructions - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Input Output Digital instructions

Description:

SetDO SDelay := 0.3, weld, off. The operation is delayed 0.3 seconds. weld is the name of the digital output. 1, on, high; 0 off low are allowed values. SetGO ... – PowerPoint PPT presentation

Number of Views:61
Avg rating:3.0/5.0
Slides: 12
Provided by: Informatio78
Category:

less

Transcript and Presenter's Notes

Title: Input Output Digital instructions


1
Input / Output Digital instructions
2
IDisable / IEnable
  • Disables / Enables all interrupts temporarily
  • Example
  • IDisable
  • FOR i FROM 1 to 100 DO
  • characteri ReadBin
  • ENDFOR
  • IEnable

3
InvertDO
  • Complements the value of a digital output signal.
  • Example
  • InvertDO do15
  • do15 is set if initially reset, otherwise do15 is
    reset.

4
PulseDO
  • Generates a pulse on a digital output signal
  • Example
  • PulseDO \High \PLength do15
  • \High specifies a high pulse
  • \PLength is the length of the pulse in seconds.
    If omitted, you get 0.2 seconds.

5
Reset
  • Forces a digital output signal to the low state.
  • Example
  • Reset weld
  • The signal weld is reset to zero.

6
Set
  • Forces a digital output signal to 1.
  • Example
  • Set do15
  • The signal do15 is set to 1.

7
SetDO
  • Changes the value of a digital output signal.
    (Boolean assignment statement for an output.)
  • Example
  • SetDO do15, 1
  • The signal do15 is set to 1.
  • SetDO do15, 0
  • The signal do15 is reset to 0.

8
SetDO with delay
  • Example
  • SetDO \SDelay 0.3, weld, off
  • The operation is delayed 0.3 seconds
  • weld is the name of the digital output
  • 1, on, high 0 off low are allowed values

9
SetGO
  • Changes the value of a group of output signals.
  • Example
  • SetGo go2, 12
  • The signal go2 is set to 12 decimal. (1100)
  • If go2 is made up of 4 signals (9,8,7,6) then
    outputs 6 and 7 are reset to zero, and outputs 8
    and 9 are set to 1.

10
WaitDI
  • Waits until a digital input signal is set.
  • Example
  • WaitDI di4, 1
  • Program execution continues only after di4 has
    been forced to 1.

11
WaitDO
  • Waits until a digital output signal is set.
  • Example
  • WaitDO do4, 1
  • Program execution continues when do4 has been set
    by the program.
Write a Comment
User Comments (0)
About PowerShow.com