Chapter 5 Instruction Specifications

FUN instructions Classification

numberItem

 

Instruction symbol

 

 

 

 

R7F4

R7F3

R7F2

R7F1

R7F0

Process

Steps

 

 

Ladder symbol

 

Instruction

 

Process descriptions

I/O types used

 

 

 

 

 

time

 

Remarks

 

 

name

 

 

 

 

 

 

(s)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

FUN 82 (s)

 

I/O refresh

 

Refreshes the I/O at the

s: WR, WM

DER

ERR

SD

V

C

MICRO-EH

 

 

 

 

z

z

z

z

311

3

 

 

(SLREF (s))

 

(any slot)

 

designated slot.

 

 

 

 

 

 

 

 

 

5

FUN 140 (s)

 

High-speed

 

Performs the starting and

s: WR, WM

z

z

z

z

147

3

 

 

 

 

counter

 

stopping of the count

 

 

 

 

 

 

 

 

 

 

 

 

operation

 

operation of the specified

 

 

 

 

 

 

 

 

 

 

 

 

control

 

counter.

 

 

 

 

 

 

 

 

 

6

FUN 141 (s)

 

High-speed

 

Performs the enabling and

s: WR, WM

z

z

z

z

138

3

 

 

 

 

counter

 

disabling of the coincidence

 

 

 

 

 

 

 

 

 

 

 

 

coincidence

 

output of the specified

 

 

 

 

 

 

 

 

 

 

 

 

output

 

counter.

 

 

 

 

 

 

 

 

 

 

 

 

control

 

 

s: WR, WM

 

 

 

 

 

 

 

 

7

FUN 142 (s)

 

High-speed

 

This controls the up-

z

z

z

z

156

3

 

 

 

 

counter up-

 

count/down-count of the

 

 

 

 

 

 

 

 

 

 

 

 

count /

 

specified counter. (Single-

 

 

 

 

 

 

 

 

 

 

 

 

down-count

 

phase counters only)

 

 

 

 

 

 

 

 

 

 

 

 

control

 

 

s: WR, WM

 

 

 

 

 

 

 

 

8

FUN 143 (s)

 

High-speed

 

The counter value of the

z

z

z

z

175

3

 

 

 

 

counter

 

specified counter number

s+1: WR, WM

 

 

 

 

 

 

 

 

 

 

 

current value

will be replaced by the data

 

 

 

 

 

 

 

 

 

 

 

 

replacement

 

stored in the replacement

 

 

 

 

 

 

 

 

 

 

 

 

 

 

value storage area.

s: WR, WM

 

 

 

 

 

 

 

 

9

FUN 144 (s)

 

High-speed

 

This function reads the

z

z

z

z

132

3

 

 

 

 

counter

 

count value of the specified

s+1: WR, WM

 

 

 

 

 

 

 

 

 

 

 

current

 

counter number and writes

 

 

 

 

 

 

 

 

 

 

 

 

value

 

it to the current value

 

 

 

 

 

 

 

 

 

 

 

 

reading

 

storage range

s: WR, WM

 

 

 

 

 

 

 

 

10

FUN 145 (s)

 

High-speed

 

Clears the count value of the

z

z

z

z

157

3

 

 

 

 

counter

 

specified counter number.

 

 

 

 

 

 

 

 

 

 

 

 

current

 

 

 

 

 

 

 

 

 

 

 

 

 

 

value clear

 

 

s: WR, WM

 

 

 

 

 

 

 

 

11

FUN 146 (s)

 

High-speed

 

The on-preset value and

z

z

z

z

162

3

 

 

 

 

counter

 

off-preset value will be set

s+1: WR, WM

 

 

 

 

 

 

 

 

 

 

 

preset

 

according to the preset

s+2: WR, WM

 

 

 

 

 

 

 

 

 

 

 

 

 

specifications in respect to

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the specified counter

 

 

 

 

 

 

 

 

 

 

 

 

 

 

number.

 

 

 

 

 

 

 

 

 

12

FUN 147 (s)

 

PWM

 

Starts PWM output of the

s: WR, WM

z

z

z

z

135

3

 

 

 

 

operation

 

specified PWM output

 

 

 

 

 

 

 

 

 

 

 

 

control

 

number.

 

 

 

 

 

 

 

 

 

13

FUN 148 (s)

 

PWM

 

Sets the frequency value

s: WR, WM

z

z

z

z

173

3

 

 

 

 

Frequency

 

and the on-duty value of the

s+1: WR, WM

 

 

 

 

 

 

 

 

 

 

 

on-duty

 

PWM output number

s+2: WR, WM

 

 

 

 

 

 

 

 

 

 

 

changes

 

specified by the on-duty

 

 

 

 

 

 

 

 

 

 

 

 

 

 

value and the specified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

frequency value.

 

 

 

 

 

 

 

 

 

14

FUN 149 (s)

 

Pulse

 

Starts pulse output of the

s: WR, WM

z

z

z

z

149

3

 

 

 

 

output

 

specified pulse number and

 

 

 

 

 

 

 

 

 

 

 

 

control

 

the output is stopped when

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the specified number of

 

 

 

 

 

 

 

 

 

 

 

 

 

 

pulses are output.

 

 

 

 

 

 

 

 

 

15

FUN 150 (s)

 

Pulse

 

Pulse output is commenced

s: WR, WM

z

z

z

z

217

3

 

 

 

 

frequency

 

at the specified frequency.

s+1: WR, WM

 

 

 

 

 

 

 

 

 

 

 

output

 

Output is stopped when the

s+2: WR, WM

 

 

 

 

 

 

 

 

 

 

 

setting

 

number of pulses specified

 

 

 

 

 

 

 

 

 

 

 

 

changes

 

have been output.

 

 

 

 

 

 

 

 

 

16

FUN 151 (s)

 

Pulse output

Divides the time band and

s: WR, WM

z

z

z

z

919

3

 

 

 

 

with

 

frequency into 10 levels

s+1: WR, WM

 

 

 

 

 

 

 

 

 

 

 

acceleration/

and performs

s+2: WR, WM

 

 

 

 

 

 

 

 

 

 

 

deceleration

acceleration/deceleration.

s+3: WR, WM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s+4: WR, WM

 

 

 

 

 

 

 

 

17

FUN 254 (s)

 

BOX

 

No processing is performed

s: WR, WM

z

z

z

z

z

3

 

 

(BOXC (s))

 

comment

 

in the CPU.

 

 

 

 

 

 

 

 

 

18

FUN 255 (s)

 

Memo

 

No processing is performed

 

z

z

z

z

z

3

 

 

(MEMC (s))

 

comment

 

in the CPU.

 

 

 

 

 

 

 

 

 

5-12

Page 62
Image 62
Hitachi NJI-350B manual Pwm, Box