![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030834.webp)
794
Data Control Instructions
Section 3-18
Note When using TPO(685) in combination with PID(190) in a cyclic task and also
using an interrupt task, temporarily disable interrupts by executing DI(693)
(DISABLE INTERRUPTS) ahead PID(190) and TPO(685). If interrupts are not
disabled and an interrupt occurs between the PID(190) and TPO(685), the
control period may be shifted.
Example 2: Using TPO(685) Alone
When CIO 000000 is ON, TPO(685) takes the duty ratio in D00010, converts
the duty ratio to a time-proportional output, and outputs the pulses to
CIO 000100.
In this case, the control period is 1 s and the output limit function is enabled
with a lower limit 20.00% and an upper limit of 80.00%.
000000
PID
0010
D00200
D00000
TPO
D00000
D05000
002001
S
C
D
D00200
D00201
:
D00206
:
:
D05000
S
C
R
4
4
1
PV input
PID parameters
Manipulated variable
Manipulated variable
Parameters
Pulse output
Set value (SV)
Proportional band (P)
When CIO 000000 goes from OFF to ON, PID(190)
reads the parameters, performs the PID calculation
with the PV input in CIO 0010, and outputs the
manipulated variable (MV) to D00000.
TPO(685) calculates the duty ratio by dividing the
MV in D00000 by the MV range (0FFF Hex since
the range is set to 12 bits), converts that duty ratio
to a time-proportional output, and outputs the pulse
output to bit 01 of CIO 0020.
Output range: 4 hex
(12 bits: 0000 to 0FFF hex)
MV range: 4 hex
(12 bits: 0000 to 0FFF hex)
Input type: 1 hex (MV)
DI
EI
S
C
D
S
C
R
Reception prohibited
Reception allowed
Interrupt task
Interrupt task
Cyclic task
PID
PV input
PID parameters
TPO
Parameters
Pulse output
Manipulated
variable
Manipulated
variable
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...