IDEC FC4A-C10R2 User Manual page 407

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

Changing Analog Output While CPU is Stopped
When using the FC4A-K2C1 analog output module, the analog output value can be changed while the CPU module is
stopped. To change the analog output value, store a required output value to the memory addresses allocated to the analog
output data.
Example: Memory Allocation of Ladder Refresh Type Analog Output Module FC4A-K2C1
Memory Address
(data address used for STPA)
+20
+22
STPA instruction when FC4A-K2C1 is mounted on slot 4
Ladder Diagram
M8120
STPA(I)
DATA
WRITE
D1400
Note: The above ladder diagram is only an example and should be modified as required.
Precautions for Programming ANST Macro
When using the ANST macro, do not make a branch from the ladder line of the ANST macro.
M8120
Incorrect
Delete the branch from the ANST macro, and start another line by inserting a LOD instruction.
M8120
Correct
M8120
Data Size
(bytes)
2
2
MOV(I)
S1 –
D1 R
0
D1400
STATUS
SLOT
ADDRESS
D1500
4
20
ANST
ANST
« FC4A M
ICRO
R/W
R/W
Analog Output Data
R/W
M8120 is the initialize pulse special internal
REP
2
relay.
MOV stores output values at the OFF state.
BYTE
4
When the CPU stops, STPA updates the analog
output value of the analog output module.
NO.1
J8AT1
Q1
NO.1
J8AT1
Q1
S
U
'
M
»
MART
SER
S
ANUAL
24: A
I/O C
NALOG
ONTROL
Parameter
CH0
CH1
24-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents