plcforum.uz.ua

International PLC Forum
It is currently Mon Sep 25, 2017 12:18 am

All times are UTC + 3 hours


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Analog scaling in Step 7
PostPosted: Wed Jul 05, 2017 9:08 am 

Joined: Sat Mar 18, 2017 7:21 am
Posts: 3
Location: United Arab Emirates
I have CPU 312-2DP and digital and analog i/o modules , I want to make a program which work like this

there is a input signal to the Analog module with range of 0-10 vdc , i want to save this values in a data block , please let me know what memory type i should use word or int or real , i use word or double word

once the value is saved in the data block i want to use this data block address and not scale this value to 0-5 v range and move output to the Analog output module


Top
 Profile  
 
PostPosted: Tue Jul 11, 2017 5:14 pm 

Joined: Thu Mar 16, 2017 10:34 pm
Posts: 17
internal wrote:
I have CPU 312-2DP and digital and analog i/o modules , I want to make a program which work like this

there is a input signal to the Analog module with range of 0-10 vdc , i want to save this values in a data block , please let me know what memory type i should use word or int or real , i use word or double word

once the value is saved in the data block i want to use this data block address and not scale this value to 0-5 v range and move output to the Analog output module


Select FC 105 from standard library... Define your high and low setpoint. For this block your high and low limit will be real (data type) meaning you are going to use double word.. Your analog output is going to be real as well.. After this select FC 106 to unscale your output value to an integer data type for your analog output card.. Hope this is helpful..


Top
 Profile  
 
PostPosted: Wed Jul 12, 2017 3:26 pm 

Joined: Tue Dec 26, 2006 8:21 am
Posts: 436
Location: Russia
L PIW 256 // ANALOGICA TRASDUTTORE
L 0
<=I
JC PR
L PIW 256 // ANALOGICA TRASDUTTORE
L 69
/I
PR: T #PRESSURE // PRESSIONE
T MW250 // PRESSIONE
T MD260 // PRESSIONE
T DB1.DBW 0 // PRESSIONE


Last edited by Dfcz on Wed Jul 12, 2017 3:31 pm, edited 3 times in total.

Top
 Profile  
 
PostPosted: Wed Jul 12, 2017 3:28 pm 

Joined: Tue Dec 26, 2006 8:21 am
Posts: 436
Location: Russia
This is input validation.

L PIW 256 // LETTURA TRASDUTTORE
L W#16#7FFF // ERRORE
==I
O(
L PIW 256 // LETTURA TRASDUTTORE
L W#16#8000 // ERRORE
==I
)
= M 126.1 // ALLARME


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by International PLCforum® Forum Software © PLCforum
Mobile version