LK Automation Limited
Home >> Problems >> Ask everyone about the NEG directive,CJ1H-CPU67H
Problem sort

Ask everyone about the NEG directive,CJ1H-CPU67H

Time: 9/20/2017 8:31:57 PM

Questions CJ1H-CPU67H as CJ1H-CPU67H the following picture in the red box:
After the NEG command is used, the source word S assignment D243=1000 displays the result word "D D428=64356"
Could you tell me why the displayed result word is not D428=-1000?
Attachment: Q_NEG.bmp
Re:   Time: 9/20/2017 9:01:00 PM
You're usnsigned OMRON CJ1H-CPU67H decimal OMRON CJ1H-CPU67H numbers to monitor, and it's OK to have signed decimal numbers to monitor
The decimal 1000 is 03E8 in the sixteen, and the inverse is FC18
But if you don't have signed decimal numbers to monitor, you'll turn FC18 directly into 64536
Select the "10" in the attached diagram with the positive and negative sign in the middle"
Attachment: unnamed.Jpg
Re:Re:   Time: 9/20/2017 11:25:00 PM
Original by OMRON CJ1H-CPU67H benhujun OMRON CJ1H-CPU67H 2013-04-10 published:
You're using unsigned decimal numbers to monitor, and it's OK to have signed decimal numbers to monitor
The decimal 1000 is 03E8 in the sixteen, and the inverse is FC18
But if you don't have signed decimal numbers to monitor, you'll turn FC18 directly into 64536
Select the "10" in the attached diagram with the positive and negative sign in the middle"
Related problems
Related products
OMRON
Programmable Controllers
CS1D-CPU67H
OMRON Programmable Controllers CS1D-CPU67H
Name: CS1D CPU Unit for Duplex CPU Systems.
OMRON
Programmable Controllers
CJ1H-CPU67H
OMRON Programmable Controllers CJ1H-CPU67H
I/O capacity/Mountale Units Expansion Racks
OMRON
Programmable Controllers
CJ1H-CPU66H
OMRON Programmable Controllers CJ1H-CPU66H
I/O capacity/Mountale Units Expansion Racks
OMRON
Programmable Controllers
CJ1H-CPU65H
OMRON Programmable Controllers CJ1H-CPU65H
I/O capacity/Mountale Units Expansion Racks
Related download