<< Prev        Next >>

ID : 364

Out

Function

To assign a value to I/O variable.

Syntax

Out I/O variable name = formula

Guaranteed entry

I/O variable name
Designate an I/O type variable name.
Formula
Designate a value in the range of data specified at I/O variable name.

Description

Assign a value to the designated I/O type variable. A signal will be output at the port which I/O type variable assigned.

Related Terms

DefIO, In, Set, Reset

Attention

-

Example

'!TITLE "Data I/O from I/O Port"
' Data I/O of I/O port "240"
Sub Sample_In

  Dim aaa As Integer

  ' Assign data of I/O port "240" to aaa
  In aaa = IO[240]

  ' Output data of aaa from I/O port "240"
  Out IO[240] = aaa

  ' Display data of I/O port "240" on the message output window
  PrintDbg aaa

End Sub

ID : 364

<< Prev        Next >>