0% found this document useful (0 votes)
55 views

GPB01 / CPU - 312 (CPU 312) / Program Blocks: Main (OB1)

This document provides information about the main program called "Main Program Sweep (Cycle)" for a CPU 312. It contains 2 networks of logic. Network 1 controls a motor in the forward direction using inputs for the forward, stop, and reverse buttons. Network 2 controls the motor in reverse using the reverse, stop and forward buttons. The main contains variables to store information like the cycle time and date/time.
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)
55 views

GPB01 / CPU - 312 (CPU 312) / Program Blocks: Main (OB1)

This document provides information about the main program called "Main Program Sweep (Cycle)" for a CPU 312. It contains 2 networks of logic. Network 1 controls a motor in the forward direction using inputs for the forward, stop, and reverse buttons. Network 2 controls the motor in reverse using the reverse, stop and forward buttons. The main contains variables to store information like the cycle time and date/time.
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
You are on page 1/ 1

Totally Integrated

Automation Portal

GPB01 / CPU_312 [CPU 312] / Program blocks


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

Main
Name Data type Default value
Temp
OB1_EV_CLASS Byte
OB1_SCAN_1 Byte
OB1_PRIORITY Byte
OB1_OB_NUMBR Byte
OB1_RESERVED_1 Byte
OB1_RESERVED_2 Byte
OB1_PREV_CYCLE Int
OB1_MIN_CYCLE Int
OB1_MAX_CYCLE Int
OB1_DATE_TIME Date_And_Time
Constant

Network 1:

%FC1
"MOTOR_FORWARD"
EN ENO
%I0.0 %Q0.0
"ForwardPB" Motor_For "Motor Forward"
Start_For

%I0.2
"StopPB"
Stop_For

%I0.1
"ReversePB"

Network 2:

%FC2
"MOTOR_REV"
EN ENO
%Q0.1 %Q0.1
"Motor Reverse" Motor_Rev "Motor Reverse"
Start_Rev

%I0.2
"StopPB"
Stop_Rev

%I0.0
"ForwardPB"

You might also like