EET 231 Chapter 2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

blocks contain information that can be accessed by all logic blocks in the user program

Global

What types of DBs are avaliable and what are they used for?

Global and instance. A global data block is not assigned to a particular code block (FB) and its values can be accessed from any code block. An instance data block is assigned directly to a function block. It contains the block parameters and static tags that are declared there.

Which data type is used to store numbers that include a decimal?

Real

What is an FC and what are they used for?

A function (FC) contains a partial functionality of the program. It is possible to program functions so that they can be assigned parameters. As a result, functions are also suited for programming recurring, complex partial functionalities such as calculations.

What is an FB and what are they used for?

A function Block (FB) is a function that is able to remember its last operation. or a subroutine that is executed when called from another code block (OB, FB, FC)

This data type can be used to store groups of values that are of the same data type.

ARRAY

When creating or editing a Data Block (DB) the user can determine whether the date can be:

Accessed by the HMI

Function Block (FB) are user program blocks and can be called by:

All of the above

Which data type is used for data that is 32 bits long?

DINT

Whats is DB?

Data Block: Memory storage areas for user data

What is the main difference betwen a FB and FC?

FC does not have memory block while FB requires instance Data Block for exercution....During every cycle FC losses its contens while the FB gets its memory to its associated block...FC is commonly used in arithmetic calculation and etc.

An Organizational Block's (OB) execution can be interrupted by an event (OB) with a:

Higher priority

Throughly describe each part of the following addresses.

I0.6------ Input byte 0. bit 6 Q2.3-----Output byte 2. bit 3 I12.6------Input byte 12. bit 6 QW112---Output word 112 IW96 ----Input word 96 MD48----Memory Dint 48 I8.5:P-----Input byte 8. bit 5: peripheral Q2.6:P----Output byte 2. bit 6: peripheral IW0------Input word 0 QW2-----Output word 2 Temp[5] temperature sensor 5

Describe the difference between linear and modular programming.

In linear programming, we can accomplish the task in one organizational block(OB).if something goes wrong we would have to jump to different portions of the code within the OB. In modular programming, we can divide the application into logical blocks of code that control portions of the application.

Which of the following are always assigned to a specific Function Block (FB)

Intansce Data

The default unit of measure for time is:

MIlliseconds

When power is switched from Stop to Run the CPU executes a complete restart by executing:

OB1

Which of the following is cyclically called by the operating system?

OB1

Which of the following are the interface between the operating system and the user program?

Organizational Blocks (OBs)

What is an OB and what types are available.

Organizational Blocks represent the interface between the operating system and the user program. the main organizational block is called program cycle (OB). others include Startup, Time delay interrupt, Cyclic interrupt, Hardware interrupt, Time error interrupt, Diagnostic error interrupt.

The memory area in which the states of all digital inputs is stored is called the:

Process-Image Input Table (PII)

The memory area in which the states of all the digital outputs are stored is called the:

Process-Image output table (PIQ)

Which data type is used for data that is 8 bits long?

SINT

This data type can be used to store groups of values that are of different data types.

STRUCT.

Explain the concept of byte addressing for a discrete module

The first discrete module is listed as being in slot 2. slot 2 has 8 input DC module installed in it. The starting byte for this module is byte 8. The module has bytes 8,9,10, and 11 reserved for it. There are only 8 inputs so only byte 8 will be used. The address for this module would be I8.0-I8.7

Which of the following STRING variables?

They hold characters.

Which of the following contains a number of milliseconds since the beginning of the day?

Time of the Day (TOD)

UDT refers to:

User-Defined Data Type

Describe each of the following memory data types:

W: Word D: DINT I: Input Q: Output IW: INput word IB: Input byte QW: Output word M: Memory MB: Memory byte MD: Memory DINt


संबंधित स्टडी सेट्स

Unit two: ch. 5-9 *skipped ch. 7

View Set

*AIC Test 12% Management Concepts

View Set

BIO exam 2 161 class 7-12 preclass

View Set

Microeconomics Final Exam Study Guide

View Set

Beckers World of the Cell: chapter 1a

View Set

English Composition I Review Part 2

View Set