Decimal Value

betamax6 said:
Can I store a decimal value in a PLC Data Memory? How? Thanks...
Hello betamax6,
Yes you can.
Do you want to do this manually (Input the data yourself; for use within the program later), or write to a memory area using the program?
Manually - Open the Memory Component in the Project Workspace.
Double click DM (This is retained Data Memory - word addressable only).
Select an address, then right click - "Fill Data Area...".
Enter your value, select "Decimal" radio button.
Select the required "Fill Range"
Click "Fill".
Close Memory Component - you will be prompted to save the changes within the project.
Click "Yes"
The next time you open the memory component, your data should still be there.
Program - Use something like the MOV instruction to write your value to the required address.

Hope this helps...

(Please don't reply saying you are using Syswin :oops: )
 
I will be extracting measurement data from a certain device through serial communication(RS-232). Anticipated values will be 5-digit decimal numbers. I need these data as bases for a comparison stage. Is this possible? How do I do it? Thanks again...
 

Similar Topics

Hello, I have a SINT array I am receiving and one of the positions of this array contains the direction of the product. Inside the ladder...
Replies
4
Views
1,136
Well I am trying to cleanly convert a decimal value in a DINT to the corresponding bit in a different DINT So if I have the number 11 on in...
Replies
11
Views
2,004
I'm troubleshooting a speed issue in Profibus right now. I can't remember the decimal value needed for 1800 rpm in profibus. Also, what about...
Replies
2
Views
1,929
I was with tasked with making a modification to a current HMI project and found that a Numeric Input on the HMI was writing to a DINT in the PLC...
Replies
5
Views
2,607
Hi all, I am working offline on some code where I am comparing two values. B3:20 = 0000 0111 (7) N7:17 = 7 If I compare the two in an EQU...
Replies
9
Views
3,877
Back
Top Bottom