EasyManuals Logo
Home>Omron>Industrial Equipment>SYSMAC FH Series

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #544 background imageLoading...
Page #544 background image
WWW.NNC.IR
Macro Reference
542
Vision System FH/FZ5 Series
User’s Manual (Z340)
GetPort
Gets the input state of the specified input terminal.
Format
GetPort(<ioIdent>, <portNo>)
Parameter
Return value
Returns the input state of the input terminal as an integer value.
• 0: Input OFF state
• 1: Input ON state
Description
Gets the state of the input terminal of the terminal number specified in the <portNo> parameter of the
communication module specified in the <ioIdent> parameter.
Normally "ParallelIo" should be specified in the <ioIdent> parameter.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a value is assigned to the return value variable or the variable is not used in an expression, a "Syntax error"
error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Parameter
name
Data type Description
<ioIdent>
Character
string type
Identification name of the communication module to be used (always "ParallelIo")
(Reference: XList of I/O Modules (p.341))
<portNo> Integer type
Terminal number of input terminal whose input state is to be gotten.
Parallel I/O
•FH
DI0 to DI7: 0 to 7
DSA N: 100 + N x 8 (N: Line number (0 to 7))
STEP N: 101+N x 8
DILINE0 to DILINE2: 200 to 202
•FZ5
DI0 to DI7: 0 to 7
DSA0: 100
STEP0: 101
DSA1: 102
STEP1: 103

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals