scl in step7

Tsørensen

Member
Join Date
May 2004
Posts
25
hey all..

i have to transform (scale) a signal from 0-100 to 0 - 16384 (4000HEX)..

what is the easyest way to do this ?

do I multiply the value with 163,84 in real and round it, or is there a easyer way to do this (like SCL in omron)

ps. sorry for my bad english
 
the function you made looks perfect for this job,

but how do i compile it ?, when i try to compile is says:

E: L 00002 C 00008: String expected, use '...'
w: Code generator not called because of an error

(sorry if this is a stupid question)
 
Just tried to import the source code and compile it. It went OK.

The error text seems to indicate that something is wrong in the start of the source code.
Did you cut-and-paste everything between "FUNCTION...." and "....END_FUNCTION" ?

Try to start all over.
 

Similar Topics

Hi all In a step7 SCL FB (NOT TIA portal) , I have declared many variables as IEC timers (SFB4). Now I need to iterate this variables (hundreds...
Replies
15
Views
7,879
Hi' I am trying to make a "lookup" in an table I have created in an array. My tabel looks like this: 0,920 21,75 200,1 0,00047 0,910 24,99...
Replies
3
Views
3,698
Dear all, I don't know why the above section (written in SCL) switches the CPU to stop mode. When I delete the two lines highlighted with...
Replies
14
Views
2,877
Hi I am having som problems evaluating if the value in an integer created in the Static area, is Odd or Even. As far as I remember, Odd integer...
Replies
17
Views
8,414
Dear all, What is the name of the function used for positive edge detection in Step7 SCL ?? Thank you
Replies
8
Views
13,076
Back
Top Bottom