RSLogix 5000 Analog Input Programming | Wiring Scaling Tutorial for PLC Analog Input Signal Example

SolisPLC
14 Jun 201918:16

Summary

TLDRThis tutorial focuses on configuring and wiring a 1769-IF8 analog input card for a 0 to 5 volts signal on a 1769 I/O chassis. The presenter guides viewers through the process of setting up the card in Studio 5000, selecting the appropriate input range, and troubleshooting potential issues. They also demonstrate how to convert raw data into engineering units for better understanding and accuracy, ensuring the analog signal is correctly interpreted within the PLC system.

Takeaways

  • 😀 The tutorial focuses on setting up an analog input card (1769-IF8) for a voltage signal ranging from 0 to 5 volts on a 1769-IF/8 card.
  • 🔌 It covers the process of wiring the card, configuring it in Studio 5000, and understanding how to interface it with the L/24 ER processor.
  • 💻 The video provides a step-by-step guide on how to add and configure the analog input module in Studio 5000 software.
  • 🔍 It demonstrates how to use RSLinx Classic Lite to identify the module and check its properties, including the catalog number and revision number.
  • 🛠️ The tutorial explains the importance of selecting the correct input range for the analog card to ensure accurate readings.
  • 📊 It discusses the data format options available in the analog card configuration, including raw/proportional and engineering units.
  • 🔩 The video includes a practical demonstration of how to wire the analog input card, emphasizing the differential voltage type with a common and positive signal.
  • 📈 It shows how to troubleshoot and calibrate the analog input to ensure stable and accurate readings, including adjusting the filter settings.
  • 📝 The presenter uses an HMI screen to generate test voltages for the analog input card, providing a hands-on example of how to verify the setup.
  • 🔧 The tutorial concludes with a discussion on converting raw data into engineering units using the compute instruction in Studio 5000 for better understanding and usability of the data in the field.

Q & A

  • What is the main focus of the tutorial?

    -The main focus of the tutorial is to demonstrate how to extract a voltage signal ranging from 0 to 5 volts into a 1769-IF8 card using an Allen-Bradley PLC.

  • What is the purpose of the extension IO in the context of the tutorial?

    -The extension IO is used to communicate with modules that are on the extension bus of the L/24 ER processor.

  • How does one identify the correct module to configure in Studio 5000?

    -To identify the correct module in Studio 5000, one can refer to the hardware label on the side of the module or use RSLinx Classic Lite to view the module's catalog number.

  • What is the significance of the Requested Packet Interval (RPI) in the configuration?

    -The Requested Packet Interval (RPI) determines how frequently the card is polled for data. It can be adjusted based on the application's need for speed or accuracy.

  • Why is the input range selection important when configuring the analog card?

    -The input range selection is important because it determines the accuracy of the readings. It should match the signal's voltage range to ensure precise data acquisition.

  • How does the tutorial suggest testing the analog card?

    -The tutorial suggests using an HMI screen from AutomationDirect's Click PLC to generate and test different voltage signals to verify the analog card's functionality.

  • What is the purpose of the 'engineering units' setting in the analog card configuration?

    -The 'engineering units' setting is used to convert raw proportional data into more meaningful units, such as voltage, making it easier to understand and use in applications.

  • Why might there be oscillation in the readings from the analog card?

    -Oscillation in the readings could be due to incorrect wiring, high filter settings, or issues with the signal source. The tutorial suggests checking these aspects to resolve the issue.

  • How can the raw data from the analog card be converted into a more understandable voltage value?

    -The tutorial demonstrates using a CPT (Compute) instruction in Studio 5000 to divide the raw data by 1000, converting it into a voltage value that corresponds to the input range of 0 to 5 volts.

  • What troubleshooting steps are suggested in the tutorial if the expected voltage is not being read?

    -The tutorial suggests checking the wiring, adjusting the filter settings, and verifying the output from the signal source using a digital multimeter to ensure the correct voltage is being sent to the card.

Outlines

00:00

🔌 Introduction to Analog Inputs with Allen-Bradley 1769-IF8

The tutorial begins with an introduction to handling analog inputs, specifically focusing on extracting a voltage signal ranging from 0 to 5 volts using an Allen-Bradley 1769-IF8 card. The presenter mentions having showcased this card in a previous vlog and addresses common questions about wiring and configuring the card within Studio 5000. The video also promotes other content on the Soleus PLC YouTube channel, covering industrial automation, PLC programming, and HMI development. The presenter encourages viewers to subscribe and enable notifications for updates. The process of configuring the card in Studio 5000 is detailed, including saving the program, uploading tags, and modifying the program offline. The tutorial walks through creating a new module in the expansion IO, selecting the correct card model, and configuring it according to the physical module installed in the system.

05:01

🛠 Configuring and Testing the 1769-IF8 Analog Card

This section delves into the configuration of the 1769-IF8 card within Studio 5000, discussing the importance of selecting the correct input range for the analog signals, which in this case is 0 to 5 volts. The presenter explains the implications of choosing the input range and the potential loss of accuracy if an incorrect range is selected. The tutorial then moves on to discuss the data format, with a focus on 'raw/proportional' for the time being, and the necessity of downloading the changes to the PLC. After the configuration, the presenter demonstrates how to generate an analog signal for testing purposes using an HMI screen from Automation Direct's DirectClick PLC. The process includes wiring the analog card and verifying the readings within Studio 5000, highlighting the initial incorrect readings and the steps taken to troubleshoot and calibrate the system.

10:03

🔍 Troubleshooting and Data Conversion for Analog Signals

The third paragraph addresses troubleshooting steps for the analog card, focusing on signal oscillation and the importance of proper wiring and configuration. The presenter adjusts the filter settings on the card and rechecks the wiring to ensure stability in the readings. A detailed explanation is provided on converting raw data from the analog card into engineering units, with a step-by-step guide on modifying the card's settings in Studio 5000. The presenter also references the datasheet for the 1769-IF8 card to understand the expected readings and how to map the raw values to actual voltage levels. The summary includes a discussion on the linearity of the scale and the calculations necessary to convert the raw values to meaningful voltage measurements.

15:05

🔧 Final Calibration and Practical Application of Analog Data

In the final paragraph, the presenter demonstrates the practical application of the analog data by calibrating the system to read accurate voltage levels. This includes using a compute instruction in the PLC program to convert the raw data into real-world voltage values. The process involves creating a new tag in the program to hold the computed voltage values and using a formula to scale the raw data to the appropriate voltage range. The presenter also discusses the need for debugging and verifying the actual voltage levels with a digital multimeter to ensure the system's accuracy. The tutorial concludes with a reminder to refer to the manual for different signal types and a call to action for viewers to engage with the content by leaving comments, liking, and sharing the video.

Mindmap

Keywords

💡Analog Inputs

Analog inputs refer to the process of converting continuous voltage signals into digital signals that a computer or microprocessor can understand. In the video, the focus is on extracting a voltage signal ranging from 0 to 5 volts into a 1769-IF8 card, which is a type of analog input module used in industrial automation. The video aims to educate viewers on how to wire and configure this card for proper analog signal processing.

💡1769-IF8 Card

The 1769-IF8 card is a specific model of analog input module used with Allen-Bradley PLCs. It is designed to handle multiple analog inputs, and in the context of the video, it is used to interface with voltage signals. The video provides a tutorial on how to wire this card and configure it within the Studio 5000 software environment, which is crucial for setting up the card for proper operation in an industrial setting.

💡Studio 5000

Studio 5000 is a software platform used for programming and configuring Allen-Bradley PLCs. In the video, it is used to configure the 1769-IF8 card, setting up the input ranges, and managing the communication between the card and the PLC. The video demonstrates how to use Studio 5000 to create and modify the program that interacts with the analog inputs, emphasizing its importance in the setup and troubleshooting process.

💡Voltage Signal

A voltage signal is an electrical signal that varies continuously in amplitude, which is different from digital signals that are either on or off. In the video, the voltage signal is the input that needs to be extracted and processed by the 1769-IF8 card. The video discusses how to wire the signal properly and configure the card to handle a voltage signal ranging from 0 to 5 volts.

💡Wiring Scheme

The wiring scheme refers to the specific way in which electrical components are connected in a circuit. In the context of the video, the wiring scheme is crucial for the proper setup of the analog inputs on the 1769-IF8 card. The video provides guidance on how to wire the card correctly, ensuring that the voltage signals are transmitted accurately to the PLC for processing.

💡Input Range

The input range on an analog input card like the 1769-IF8 specifies the voltage levels that the card can accept and process. In the video, the input range is set to handle a 0 to 5 volts signal, which is a critical configuration step. The correct input range ensures that the analog signals are accurately converted into digital signals that the PLC can interpret.

💡Data Format

Data format in the context of analog inputs refers to how the raw data from the analog signals is represented and processed within the PLC system. The video mentions 'raw/proportional' and 'engineering units' as options for data format. Choosing the correct data format is essential for ensuring that the data can be accurately interpreted and used within the control system.

💡Filter

A filter in the context of analog signal processing is used to remove noise or unwanted signals from the data. In the video, the presenter adjusts the filter setting on the 1769-IF8 card to reduce oscillation in the readings. Proper filtering is important for obtaining stable and accurate analog signal readings.

💡Engineering Units

Engineering units refer to the conversion of raw data from an analog input into a meaningful scale that engineers can understand and work with. In the video, the presenter switches from 'raw/proportional' to 'engineering units' to make the data more understandable and to align it with the expected voltage levels. This conversion is crucial for accurate monitoring and control of processes in industrial automation.

💡HMI (Human-Machine Interface)

HMI stands for Human-Machine Interface, which is a user interface that allows operators to interact with industrial automation systems. In the video, an HMI screen is used to generate and adjust the analog voltage signals that are sent to the 1769-IF8 card for testing. The HMI provides a visual and interactive way to control and monitor the analog inputs, which is an essential part of the testing and validation process.

Highlights

Introduction to a tutorial focusing on analog inputs and extracting a voltage signal from 0 to 5 volts.

Discussion on the 1769-IF8 card, its features, and its previous showcase in a vlog.

Explanation of how to wire and configure the 1769-IF8 card and inputs in Studio 5000.

Invitation to subscribe to the Soleus PLC YouTube channel for more industrial automation content.

Demonstration of how to add the 1769-IF8 module to a Studio 5000 program.

Instructions on how to identify the correct module using RSLinx Classic Lite and device properties.

Details on configuring the expansion IO and selecting the appropriate card for the system.

Guidance on setting the packet interval for data collection from the analog card.

Tutorial on enabling channels and selecting the input range for the analog card.

Explanation of the data format options and the selection of 'raw/proportional' for initial setup.

Process of downloading the configuration to the PLC and verifying the module's status.

Description of generating an analog signal for testing the analog card using an HMI screen.

Wiring instructions for connecting the differential voltage signal to the PLC.

Review of the values obtained from the analog card and the need for calibration.

Troubleshooting steps for dealing with oscillating readings and ensuring stable signal readings.

Conversion of raw data into engineering units for better understanding and usability.

Final demonstration of how to process the voltage signal and convert it into a more understandable format.

Conclusion and call to action for viewers to ask questions, like, share, and suggest content for the channel.

Transcripts

play00:00

welcome to the tutorial on analog inputs

play00:03

in which we're going to be focusing on

play00:05

extracting a voltage signal which is

play00:08

going to be from 0 to 5 volts into our

play00:11

1769 - I f/8 card which you can see on

play00:14

your screen right now and this is a card

play00:16

which I've showcased in one of my vlogs

play00:19

previously and I've gotten a lot of

play00:21

questions about discussing how to wire

play00:23

this in as well as how to configure the

play00:26

card as well as the inputs in-studio

play00:29

5000 so we're going to be looking at

play00:31

those concepts and more and without any

play00:33

further delay let's just jump right into

play00:36

it before we get started with today's

play00:37

video we just wanted to quickly point

play00:39

out all the great content we've been

play00:41

releasing on the soleus plc youtube

play00:43

channel and this includes industrial

play00:45

automation plc programming as well as

play00:47

HMI development and if you enjoy this

play00:50

type of content we would really

play00:51

appreciate it if you could click the

play00:53

subscribe button as well as the

play00:54

notification bell in order to receive

play00:57

the latest and greatest content we will

play00:59

be posting to the channel so we've done

play01:01

this a couple of times in the past but

play01:03

if I scroll down in my current plc

play01:05

program you will notice that I have this

play01:07

embedded in discrete i/o module and

play01:11

underneath there is essentially nothing

play01:13

in the extension IO

play01:14

and the extension IO is what's going to

play01:16

allow us to communicate with the modules

play01:20

which are going to be on the extension

play01:22

bus of the l/24 ER processor so what I'm

play01:26

going to have to do is first I'm going

play01:27

to save the program I'm going to upload

play01:30

all the tags make sure that I have the

play01:32

latest and greatest program before I go

play01:35

offline and start modified so we are

play01:37

definitely live with the processor I'm

play01:39

going to click go offline and once I'm

play01:43

here I can right click the expansion IO

play01:45

I can click new modules and from here I

play01:47

will need to select the exact card that

play01:50

I have in my chassis right now so I'm

play01:52

going to just type in 1769

play01:54

- I f8 and in case you're not familiar

play01:58

with the numbering what you can do is

play02:00

essentially once you disassemble the

play02:02

hardware you can pull out this side

play02:04

module and you can see the label on the

play02:06

side I've shown this in a couple of

play02:08

videos but essentially you can find the

play02:10

same catalog number on the side of the

play02:12

module you can

play02:13

also do an alternatively if you go into

play02:16

rslinx classic lite you can click on

play02:19

your module scroll down a to the network

play02:22

of your choice and the PLC that I've

play02:24

given essentially the IP address to one

play02:27

92168 that one that 11 is going to be my

play02:30

L 24 er if I expand this and expand the

play02:33

compact bus you will notice that this is

play02:36

going to be the channel analog module

play02:39

and if I right click and go into device

play02:42

properties I will first of all be able

play02:44

to see the revision number but I can

play02:47

also go into right-click and then see I

play02:50

believe it's driver Diagnostics there's

play02:54

there's a way to essentially see what

play02:56

kind of a card it is let's see here yeah

play03:00

so I guess you can't see I'm not sure

play03:02

why it's not labeled 1769 - if' 8 but

play03:06

from the analog display as well as the

play03:09

fact that there's 8 of them you can

play03:10

pretty much determine that that's the

play03:12

card that's really strange that it's not

play03:13

displaying the full catalog number in

play03:17

here but in any case we're going to go

play03:18

back into our studio 5000 and what we're

play03:22

going to do is we're going to select the

play03:23

module I'm going to hit create here I'm

play03:27

just going to give it a name which is

play03:29

going to be I'm going to call it local

play03:32

analog in and usually I like to go by

play03:36

the slot numbers so remember that the

play03:38

plc is essentially in slot 1 this is

play03:40

going to be slot 2 the revision number

play03:43

is going to be the same as we just saw

play03:45

in rslinx so one that is zero zero one

play03:47

is perfectly fine we can definitely give

play03:49

it a description bar we're just going to

play03:50

hit OK so that we can see the module in

play03:53

the expansion i/o since we don't have

play03:55

anything else in that rack which is

play03:57

going to close out of this menu and

play03:59

you'll notice that the slot number two

play04:01

which is that card has appeared right

play04:03

here so once again that's a 1769 - if8

play04:06

and if we go into the properties we can

play04:10

configure a lot of this online but what

play04:13

I do want to mention is first of all the

play04:14

requests that packet interval or RPI is

play04:17

going to how frequently you want to pull

play04:19

this card for data usually the default

play04:22

value is fine if you have some kind of a

play04:23

high-speed application then maybe you

play04:25

need to change this to a lower value

play04:27

if you care a little bit less if you

play04:29

have for example a very slowly changing

play04:32

status or an analog sensor which doesn't

play04:34

require that much reading you can change

play04:36

this to a higher number in any case what

play04:38

we're going to be dealing with is with

play04:40

eight different channels thus card if

play04:43

you flip over the slot you will notice

play04:45

that there's going to be a wiring scheme

play04:47

for all eight of them you can also refer

play04:49

to the wiring manual in order to

play04:52

understand how it's going to be compiled

play04:55

in so if I pull this on the screen right

play04:58

now here's the compact IO 1769 I have

play05:01

eight and if you go into the field

play05:03

wiring connections which we're going to

play05:04

be doing in just a moment you can see

play05:07

the different schemes depending on

play05:09

whether you have a voltage or a current

play05:11

transmitter how they need to be wired in

play05:13

the field so do take note that your

play05:16

wiring might be different than what I'm

play05:17

going to show you that being said we do

play05:20

need to enable the channel that we're

play05:21

going to use and since we're only going

play05:23

to do one of them we're just going to

play05:25

enable channel zero and the input range

play05:27

is one of the most important selections

play05:30

here so depending on the flavor of

play05:32

analog cards you may not have all these

play05:35

options some of them are going to be

play05:37

focused on voltage alone on current

play05:39

alone or a vice-versa or both of them

play05:42

just like it is in the case of if8

play05:45

so because we're going to be working

play05:48

with the 0 to 5 volts signals we're

play05:50

going to select that range do note that

play05:52

you can still use the 0 to 10 volt range

play05:54

but you're essentially going to lose in

play05:56

a little bit of accuracy so you want to

play05:58

select what's essentially useful for you

play06:01

and based on your specifications the

play06:04

data format we're going to look at this

play06:05

a little bit later - for now we're just

play06:07

going to leave it in raw slash

play06:09

proportional I'm going to hit on apply

play06:11

and alarms we're not going to mess with

play06:14

that in this tutorial I'm going to hit

play06:16

OK and here I need to download to the

play06:18

PLC since we've made a major change so

play06:21

I'm going to select the download and of

play06:24

course it's going to give me a warning

play06:25

that we are going to download to a live

play06:27

PLC hit download and then once we are

play06:31

online the card should display as

play06:34

correct

play06:36

and it already has the okay status as

play06:38

you can see at the top here so we're

play06:39

assuming that everything is okay now I

play06:42

wanted to talk a little bit on how I'm

play06:44

going to generate the analog signal that

play06:47

we're going to use in order to test our

play06:48

card so in the screen you can also see

play06:51

this little HMI screen which is actually

play06:54

coming from the it's coming from a

play06:57

direct click PLC so automationDirect

play07:01

click and here I've programmed a very

play07:03

simple routine and essentially all you

play07:05

need to understand is that from this

play07:07

little menu on the bottom left hand side

play07:10

I can select this zero value and I can

play07:13

type in how many what percentage of the

play07:16

zero to five volt range I will select as

play07:19

an output so for example here if it's

play07:21

showing 50 that means we're outputting

play07:23

2.5 volts and if I hit this clear and

play07:25

type in 220 for example then it's going

play07:28

to be 20% of the 5 volts which

play07:33

essentially translates to 2 volts and so

play07:35

on and so forth but that's not the focus

play07:36

of our tutorial for today what I want

play07:39

you to focus on is going to be on the

play07:41

if8 card so that's going to be the the

play07:45

concern of the discussion but I just

play07:46

want you to understand how we're getting

play07:48

the voltages which are going to be

play07:49

coming out in the studio 5,000 so let's

play07:52

do the wiring first and then we're going

play07:54

to jump into the software right away so

play07:57

the signal which is sent to us by the

play07:59

direct click PLC is going to be of

play08:02

differential voltage type which means

play08:04

that we essentially have a two wires one

play08:07

which is going to be at the negative and

play08:09

watch one which is going to be the

play08:11

positive so it's going to be a fairly

play08:13

straightforward scheme so let's just

play08:15

plug it into the PLC and see what we

play08:19

need to do next so first of all I'm

play08:21

going to land the common

play08:24

you

play08:27

you

play08:32

and next we have the positive signal

play08:35

which is coming back from the same

play08:37

signal

play08:39

you

play08:45

so in this case the wiring is not

play08:47

extremely complicated let's go back into

play08:50

studio 5000 a double check what kind of

play08:52

a value we're getting and in order to do

play08:54

that you'll notice that once we select

play08:56

different modules so once I select this

play08:58

local analog input slot 2 there's going

play09:02

to be tags like I've explained a couple

play09:03

of times before but essentially they're

play09:05

going to come in to local two i/o and

play09:08

see if we scroll up to the controller

play09:11

double-click the controller tags go into

play09:14

monitor and then scroll down to local 2

play09:17

they should be all the way at the bottom

play09:19

local 2 input and we're going to have

play09:22

different channels display here so

play09:24

channel 0 channel 1 2 3 4 all the way to

play09:27

channel 7 and those are going to be the

play09:30

8 channels coming in from our card

play09:32

you'll notice that shadows 0 has

play09:35

currently this minus 15,700 value which

play09:39

is a fairly meaningless to us as you

play09:41

remember we are reading a 0 to 5 volt

play09:44

signal and at this point if you look at

play09:47

the HMI from automationDirect it is

play09:49

currently set to 20% so let's just

play09:52

calibrate that to set it to 0 and see

play09:55

what happens so at 0 or reading a minus

play09:58

27,000 and if we go to 100% then let's

play10:02

see the value is going to be around

play10:05

29,000 but it seems to be oscillating so

play10:09

we're going to look into that as well

play10:10

let's just put it back to clear let's do

play10:13

50 press enter so at 50 as you can see

play10:17

the value is at around 1,000 now there's

play10:21

going to be multiple ways to address

play10:23

this but ultimately what I prefer doing

play10:26

is if we go into the analog card and we

play10:29

double-click and go back into the

play10:31

configuration instead of using this raw

play10:33

proportional data format we're going to

play10:36

go into engineering units I'm going to

play10:38

head apply hit yes because essentially

play10:41

it is changing the scheme online so do

play10:43

be careful if you change this on a live

play10:45

system we're going to hit OK and you'll

play10:47

notice that we have this value which is

play10:50

going to be essentially 2500 or so and

play10:55

it seems like we're just getting a

play10:56

little bit of noise it shouldn't be

play10:58

awesome

play10:58

leading this much so I'm just going to

play11:00

double-check the wiring

play11:02

it should be fairly steady out that

play11:05

reading I think everything is okay so

play11:09

that's not a big problem I think we need

play11:11

to also tie the comment probably to zero

play11:13

so the comment of the analog card should

play11:16

probably go to ground so I'm going to

play11:17

put that wire in and make sure that at

play11:19

this value it doesn't oscillate as you

play11:21

can see it goes from 22 to 2,400 so

play11:24

let's just do that really quickly

play11:26

alright so I ended up doing just a

play11:28

little bit of debugging and essentially

play11:30

moving the wiring to channel 1 thinking

play11:33

at first that it might be oscillating

play11:35

because the channel on this specific

play11:36

card was not good anymore that wasn't

play11:39

the case it was actually the filter so

play11:40

what I did is I went into the settings

play11:43

for the card for the I f8 and then I

play11:46

changed this filter to be 10 Hertz

play11:48

instead of the 60 Hertz I'm actually

play11:50

going to disable the channel 0 which is

play11:52

which is no longer being used and at

play11:55

this point everything looks a very very

play11:57

stable as you can see the value here is

play11:59

minus 27,000 and once I change on this

play12:03

little HMI that you can see on your

play12:05

screen the numeric entry to be 100% then

play12:10

we're going to read minus 27 thousand

play12:13

which is actually once I mouse over from

play12:16

it it's going to be 25 thousand now

play12:19

where is this value coming from let's

play12:21

open the datasheet once again and here's

play12:24

the a different sheet which I also found

play12:26

online and since we're in the setting so

play12:29

here's the input range in the setting of

play12:31

a 0 to 5 volts DC you're going to have

play12:34

these different readings depending on

play12:36

which setpoint or which data you've

play12:39

selected on your card so here's the raw

play12:42

proportional data which as you remember

play12:44

we're currently set to and if we look in

play12:47

the 0 to 5 volt DC range you'll notice

play12:50

that at 0 volts we should get this as 0

play12:52

and then at 5 volts which we should get

play12:54

this 30 1206 now of course there's going

play12:59

to be a little bit of a difference that

play13:00

being said it still doesn't make sense

play13:03

that we're getting 25,000 so let's go

play13:05

back into the configuration and double

play13:07

check what we're reading so I'm going to

play13:09

actually let's see 50 Hertz works

play13:12

a little bit better I'm going to say yes

play13:13

and okay and actually that makes it

play13:17

oscillate quite a bit let's go back and

play13:19

change that to 10 Hertz and we're going

play13:22

to double check also what's the output

play13:25

on a D on the other plc which is sending

play13:29

us the voltage so I don't want you to

play13:31

read too much into the details of this

play13:34

program but essentially here's the Kliq

play13:36

programming software and from here I can

play13:39

go into my setup and the built-in IO and

play13:42

what you'll notice is that the output

play13:46

that I'm using the 0 to 5 output is

play13:49

currently sending out 5v DC which is

play13:52

exactly what we would expect but we're

play13:54

still reading a value which is going to

play13:56

be less than the specified data sheet so

play14:00

let's go back into the datasheet and see

play14:03

what is happening so we're reading

play14:07

27,000 which I believe doesn't compute

play14:11

let's see here let's go back into studio

play14:14

25,000 so that's actually a bit less

play14:16

than what I would expect let's see if we

play14:19

can get a normal value in the

play14:21

engineering unit so let's go back into

play14:23

configuration and switch those two

play14:25

engineering units I'm going to hit apply

play14:27

yes alright so looking at the data sheet

play14:30

we can use a simple computing structure

play14:33

in order to convert the values that we

play14:35

have are right here into voltages that

play14:38

we would be expecting so the very simple

play14:42

math formula to convert this 5000 into 5

play14:46

volts would be to simply divide by 1000

play14:48

and at that point we should be able to

play14:50

receive the exact voltage at any range

play14:53

so of course this scale is going to be

play14:55

linear so at 3000 for example you should

play14:58

expect 3 3 volts DC at 2000 two volts DC

play15:02

so on and so forth so let's switch to

play15:04

studio 5000 and demonstrate that

play15:06

principle I'm going to go into my main

play15:09

program and then inputs so since this is

play15:12

an input this would make sense to leave

play15:15

it in this location I'm going to drag

play15:18

out just any instruction here's an x IC

play15:20

and I'm going to change this to a CPT

play15:22

compute so this is a mathematical

play15:25

normal instruction and instead of in the

play15:29

expression I'm going to sell the

play15:31

instruction what to calculate in the

play15:32

destination is going to be where to send

play15:34

this value so this is going to be

play15:36

channel 1 this is going to be the

play15:42

voltage volts so let's call it like that

play15:46

and the raw value of course is going to

play15:48

be let's control tab back into this

play15:50

value this is going to be the raw data

play15:52

so channel or one data local to channel

play15:55

one data so this just needs to be

play15:57

divided by 1000 so I'm going to put in

play16:00

this formula so channel local to channel

play16:05

1 data divided by 1000 is going to be

play16:07

the expression I'm going to right click

play16:09

channel 1 volts new and this is going to

play16:12

be of type a real so let's put that as

play16:14

real create and once we compile the

play16:18

program we will essentially get the

play16:21

voltage that we are reading on that

play16:24

input card now there's going to be some

play16:26

debugging to do as to why we're not

play16:28

getting the 5 volts that we're expecting

play16:30

and essentially I'm just going to go in

play16:32

with my digital multimeter and figure

play16:35

out if we're actually getting the 5

play16:37

volts to this card or we're getting

play16:38

something less and figuring out what the

play16:41

voltage is but essentially if I go back

play16:43

to this little HMI I can change the

play16:46

value here so let's clear and let's try

play16:48

20% at which point we should be reading

play16:51

1 volt and that's pretty close so 0.995

play16:54

if I clear that value once again and I

play16:57

put in 40% so for 80% of 5 volts is

play17:00

going to be 2 and we're reading

play17:02

something very close to 1 point nine

play17:04

four seven so on and so forth so I hope

play17:06

that explains how to use this analog

play17:09

card how to process the voltage and how

play17:11

to get the raw data into a form which is

play17:14

a little bit more understandable and do

play17:17

keep note that of course I'm dealing

play17:19

with volts you can also be dealing with

play17:21

currents and that being said if you

play17:24

refer back to this manual as long as you

play17:26

match it with the signal that you're

play17:28

getting because depending on the sensors

play17:30

that you're using depending on the data

play17:32

that's coming in you might have

play17:34

different values and it might make more

play17:36

sense for you to use for example this

play17:38

report

play17:39

data engineering units scale for PID or

play17:42

percent a full range that being said it

play17:45

doesn't impact the final calculation and

play17:47

you can always use the essentially the

play17:49

computer instruction to convert to a

play17:51

real value that you might understand in

play17:53

the field thank you guys so much for

play17:55

watching my content if you have any

play17:56

questions on this topic make sure to

play17:58

leave them in the comment section below

play18:00

and if you can spend five seconds of

play18:02

your time liking as well as sharing that

play18:04

video if you've enjoyed it

play18:05

that would mean absolutely the world to

play18:07

me and if you have any suggestions for

play18:08

the channel what kind of hardware

play18:10

software I should be covering then make

play18:11

sure to leave that down there as well

play18:13

see you next time take care bye

Rate This

5.0 / 5 (0 votes)

関連タグ
Analog InputsPLC Programming1769-IF8 CardAutomationHMI DevelopmentIndustrial AutomationSignal ProcessingVoltage SignalStudio 5000Control Systems
英語で要約が必要ですか?