I am new to plc programming and I don't understand scp that well. If you could explain how you got that formula I would appreciate it.
An SCP instruction models a linear relationship between two numerical quantities' values, which values typically have different units.
TL;DR
Expanding on what @plvlce wrote, do you understand what a "linear" numerical relationship is?
E.g. the relationship between °F and °C is linear:
- a temperature of 32°F is the same as a temperature of 0°C*
- a temperature of 212°F is the same as a temperature of 100°C**
A linear relationship between the °F and °C temperature scales means that halfway (122°F), or a third of the way (92°F), or 200% of the way (392°F), from the lower 32°F to the higher 212°F temperatures of those two points on the Fahrenheit scale are the same temperatures as halfway (50°), or a third of the way (33°C+), or 200% of the way (200°C), respectively, from the lower 0°C to the higher 100°C temperatures of those two points on the Celsius scale.
Actually, that is a circular explanation, because if you understand what "halfway," "a third of the way," "or 200% of the way" mean, then you already understand linear numerical relationships, even if the term "linear" is foreign to you.
* the freezing point of water under certain conditions
** the boiling point of water under certain conditions (e.g. 1atm absolute pressure)