Chapter 5 Instruction Specifications

Item number

FUN instructions-3

 

 

Name

 

 

I/O refresh (Input/output)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ladder format

 

 

 

 

 

 

 

Condition code

 

Processing time (s)

Remark

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R7F4

 

R7F3

 

R7F2

 

R7F1

R7F0

Average

Maximum

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FUN 81 (s)

 

 

 

DER

 

ERR

 

SD

 

 

V

 

 

C

 

 

 

 

 

 

 

 

* (IOREF (s))

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

 

 

z

 

 

z

 

 

z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction format

 

 

 

 

 

 

 

Number of steps

 

244

 

 

 

 

 

 

 

 

 

 

 

 

Condition

 

 

 

 

Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FUN 81 (s)

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

* (IOREF (s))

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

 

Word

 

Double word

 

Constant

 

 

 

Usable I/O

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Other

 

X

Y

M

 

 

CU, CT

 

WX

WY

WM

 

TC

DX

DY

DM

 

 

 

 

 

 

 

 

 

 

 

R,

 

TD, SS,

 

 

 

 

 

WR,

 

 

 

 

DR,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s

Type

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

{

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s

 

Input type

 

H00: Input refresh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H01: Output refresh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Depending on the I/O type of the area specified by s, refresh is performed with respect to I/O modules only, output modules only.

Refresh is performed by each slot assignment according to the I/O assignment.

If the refresh processing is completed normally, DER is set to '0.'

*( ) indicates the display when the Ladder Editor is used.

Notes

• If the I/O type is other than H00 or H01, DER is set to “1” and no processing will be performed.

• If the argument s exceeds the maximum I/O number, DER is set to “1” and no processing will be performed.

FUN 81 (s)

Program example

 

R000

DIF0

 

 

WR0004 = 0

 

 

 

 

 

 

FUN

81

(WR0004 )

 

R001

DIF1

 

 

 

 

WR0004 = 1

 

 

 

 

 

 

FUN

81

(WR0004 )

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LD R000 AND DIF0

[

WR0004 = 0

FUN 81

(WR0004)

]

 

LD

R001

AND

DIF1

[

WR0004 = 1

FUN 81 (WR0004)

]

Program description

Upon leading of R000, the input module is refreshed.

Upon leading of R001, the output module is refreshed.

5-126

Page 176
Image 176
Hitachi NJI-350B manual FUN instructions-3, Refresh Input/output, 244, Input type, 126