0% found this document useful (0 votes)
17 views2 pages

FRABA Absolute Encoder Program Overview

This document provides information about the Totally Integrated Automation Portal software. It summarizes the main program for PLC_1, which includes variable declarations for cycle time monitoring and encoder block function block calls. Network 1 initializes function block instances for a multi-turn encoder. Network 2 resets the retain flag for the encoder. Network 3 sets the load set value for the encoder based on an input.

Uploaded by

Ahmed Yacoub
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

FRABA Absolute Encoder Program Overview

This document provides information about the Totally Integrated Automation Portal software. It summarizes the main program for PLC_1, which includes variable declarations for cycle time monitoring and encoder block function block calls. Network 1 initializes function block instances for a multi-turn encoder. Network 2 resets the retain flag for the encoder. Network 3 sets the load set value for the encoder based on an input.

Uploaded by

Ahmed Yacoub
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Totally Integrated

Automation Portal

FRABA_Absolute_Encoder / PLC_1 [CPU 314C-2 PN/DP] / Program blocks


Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Manual
Information
Title "Main Program Sweep (Cy‐ Author Comment Family
cle)"
Version 0.1 User-defined ID

Main
Name Data type Offset Default value Comment
Temp
OB1_EV_CLASS Byte 0.0 Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
OB1_SCAN_1 Byte 1.0 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
OB1_PRIORITY Byte 2.0 Priority of OB Execution
OB1_OB_NUMBR Byte 3.0 1 (Organization block 1, OB1)
OB1_RESERVED_1 Byte 4.0 Reserved for system
OB1_RESERVED_2 Byte 5.0 Reserved for system
OB1_PREV_CYCLE Int 6.0 Cycle time of previous OB1 scan (milliseconds)
OB1_MIN_CYCLE Int 8.0 Minimum cycle time of OB1 (milliseconds)
OB1_MAX_CYCLE Int 10.0 Maximum cycle time of OB1 (milliseconds)
OB1_DATE_TIME Date_And_Time 12.0 Date and time OB1 started
Constant

Network 1:
Totally Integrated
Automation Portal

%DB1
"FRABA2.
2Multiturn_DB"
%FB2
"FRABA2.2Multiturn"
EN ENO

16#0200_0816 16#0000_0000
%ID278:P %QD278:P
"Tag_2":P PID_IN1 PQD_OUT1 "Tag_1":P

16#0816 16#0000
%IW280:P %QW280:P
"Tag_7":P PIW_IN2 PQW_OUT2 "Tag_29":P

16#0000
16#0200_0816
%IW274:P
%DB1.DBD32
"Tag_8":P PIW_IN3 "FRABA2.
10.0 PulleyDiameter 2Multiturn_DB".
4096.0 #Revolutions PositionValue PositionValue
360.0 RotationAngle
0
FALSE %DB5.DBW4
%DB1.DBX20.0 "Encoder_
"FRABA2. block"."velocity
2Multiturn_DB". VelocitySteps/s steps/1000ms"
"CW/CCW" CW/CCW
16
FALSE %DB5.DBD14
%DB1.DBX20.1 "Encoder_
"FRABA2. EncoderMilimet block".
2Multiturn_DB". erI milimeter_int
PresetInitial PresetInitial

FALSE
%DB1.DBX20.2
"FRABA2.
2Multiturn_DB".
"Retain Value" Retain Value

FALSE
%DB1.DBX20.3
"FRABA2.
2Multiturn_DB".
SVEnable SVEnable

0
%DB1.DBW22
"FRABA2.
2Multiturn_DB".
LoadSV LoadSV

0 T10

%DB5.DBD0
"Encoder_
block"."pulses/
rev_int" Pulses/RevI

%DB5.DBD6
"Encoder_
block"."pulses/
rev_real" Pulses/RevR

%DB5.DBD10
"Encoder_
block". EncoderMilimet
milimeter_real erR

%DB5.DBD18
"Encoder_
block".
CamDegree CamDegree

Network 2:

%DB1.DBX20.2
"FRABA2.
%M49.0 2Multiturn_DB".
"ResetRetain" "Retain Value"
R

Network 3:

%DB1.DBX20.3
"FRABA2.
%M49.1 2Multiturn_DB".
"Tag_9" MOVE SVEnable

EN ENO
1024 IN

%DB1.DBW22
"FRABA2.
2Multiturn_DB".
OUT1 LoadSV

You might also like