Program Organization - Siemens SINUMERIK 802S Technical Manual

Base line
Hide thumbs Also See for SINUMERIK 802S:
Table of Contents

Advertisement

4.3.7

Program organization

SINUMERIK 802S base line
Start-Up
Instruction
Move Byte
If EN = 1,
copy i to o.
Move Word
If EN = 1,
copy i to o.
Move DWord
If EN = 1,
copy i to o.
Move Real
If EN = 1,
copy i to o.
Swap Bytes
If EN = 1,
exchange
and LSB of w.
Each programmer should divide the user program into several closed program
sections (subroutines). The S7-200 programming language allows the user to
create structured user programs. There are two program types - main
programs and subroutines. Eight program levels are possible.
A PLC cycle can be a multiple of the control-internal interpolation cycle (IPO
cycle). The machine manufacturer must set the PLC cycle according to his/her
own requirements (see machine data "PLC_IPO_TIME_RATIO"). The ratio
IPO/ PLC of 1:1 is the fastest possible cyclic processing.
Example: The programmer programs a sequence control in the main program
using his own defined cycle counter. The sequence control defines all cyclic
signals in the subroutine (UP0); UP1/UP2 is called every two cycles, and UP 3
controls all signals in steps of three cycles.
MOVE, FILL AND FIND OPERATIONS
Ladder Symbol
MOV_B
EN
IN
MOV_W
EN
IN
MOV_DW
EN
IN
MOV_R
EN
IN
SWAP
MSB
EN
IN
Valid Operands
Enable:
EN
In:
VB, IB, QB, MB, AC,
ENO
Constant, LB
Out: VB, IB, QB, MB, AC,
OUT
LB
Enable:
EN
In:
VW, T, C, IW, QW,
ENO
MW, AC, Constant,
LW
OUT
Out: VW, T, C, IW, QW,
MW, AC, LW
Enable:
EN
In:
VD, ID, QD, MD, AC,
ENO
Constant, LD
Out: VD, ID, QD, MD, AC,
OUT
LD
Enable:
EN
In:
VD, ID, QD, MD,
ENO
AC, Constant, LD
Out: VD, ID, QD, MD, AC,
OUT
LD
Enable:
EN
In:
VW, IW, QW, MW, T,
ENO
C, AC, LW
Start-Up
4-27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents