View Single Post
Old January 14th, 2021, 07:06 AM   #6
Lifetime Supporting Member + Moderator
United Kingdom

daba is offline
daba's Avatar
Join Date: Jul 2004
Location: uk
Posts: 5,156
I have just noticed that you are implementing a shift register using a DINT array.

You have to be aware that bit 31 of DINT tags are sign bits, so your GRT instruction will not work as planned - once bit 31 becomes a "1", the value of thee DINT is no longer GRT 0, but it is LES than 0.

You might want to substitute it with NEQ 0

When you look at the instructions, sometimes you cannot see all 32 bits, so simply drag the border between the ladder display and the project organiser, you only need to move it by 1 pixel - annoying I know, but it has been like that for years !!
Attached Images
File Type: jpg 2021-01-14_120303.jpg (6.0 KB, 10 views)
File Type: jpg 2021-01-14_120321.jpg (7.1 KB, 8 views)
ControlLogix & SLC Training
a-b train ltd.
tel: 07506 73 9999
Everything works with smoke. Let it out, and it stops working.

Nil Carborundem Illegitimi

  Reply With Quote