Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Program Pattern
The program pattern divides the processing from the start to end of execution of the instruction into
steps and chronologically gives the target set point and time width for each step. The program pattern is
expressed in the ProgramPattern[] array, which has elements with a data type of _sAC_STEP_DATA.
Each element of ProgramPattern[] corresponds to one step.
An example of a program pattern is provided below. If the values of the ReachSP and TimeWidth ele-
ments of ProgramPattern[] are as given in the following table, the relation between time and the set
points after instruction execution is started is shown in the following figure.
Step number
Value of ReachSP
Value of TimeW-
idth
Set point
200
120
100
80
30
0
10 m
Linear interpolation is perform for the set points for the steps and the value of PresentSP is calculated
for each point. The solid line in the figure represents PresentSP. For each task period, the value of
PresentSP at that point is output.
 Relation between the Value of TimeWidth and the Time Width of the Step
The following table shows the relation between the value of TimeWidth and the time width of the
step.
Value of TimeWidth
T#0s
Positive
Negative
 Operation for Step Time Width That Is Less Than One Task Period
The resolution of the step time width is one task period. The following table describes the operation
for a step time width that is less than one task period.
Step number
0
Not 0

NY-series Instructions Reference Manual (W560)

ProgramPattern[] element number
0
1
0
1
30
100
T#0s
T#10m
T#15m
PresentSP
15 m
15 m
4 m 5 m
Step number
0
Not 0
---
---
Time width of the step
T#0s
Not T#0s
---
2
3
4
2
3
4
120
200
200
T#0s
T#15m
Time [min]
Time width of the step
Treated as T#0s.
Treated as one task period.
The value of TimeWidth is the time width of the step.
Treated as one task period.
The value of ReachSP for step 0 is the initial value for
PresentSP. Actual processing starts from step 1.
Processing for the current step is executed for only one
task period and then processing moves to the next step.
2 Instruction Descriptions
5
6
7
5
6
7
80
80
0
T#4m
T#5m
T#0s
Operation
2
2-777

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents