5931
General Mach Discussion / Re: CAUTION! User LED's Turn on with opening wizards
« on: February 20, 2013, 06:16:07 AM »
I am not sure if you meant to attach a screenshot or not but dont see one if you did?
That screenshot was from this desktop computer but below is the actual screenshot from the big lathe. And yes I am using 8-1-n not sure why but just what I have always had set and no issues.
You set the start register and then it will look from there, for example I have the first as 1025 (2001 Octal) and I have 4 registers set. I am also using the bitmapped (bitpacked?) option so the PLC has something like the following in it.
B2001.0
B2001.1
B2001.2
......
b2001.15
b2002.0
b2001.1
....
etc
So say for example I want to read b2001.1 from VB it would be GetInput(1) or B2002.0 would be GetInput(16)
Also I could set them up in ports and pins to an input, the ones above would be Port 0 pin 0 and Port0 Pin16
Outputs are the same idea
B4000.0 etc etc
and setting from VB would be
Set ModOutPut(0,1) or (0,0) depending on whether you are turning it on or off.
Likewise in Ports and pins you can set the outputs as port 0 pin 0 etc
Hood
That screenshot was from this desktop computer but below is the actual screenshot from the big lathe. And yes I am using 8-1-n not sure why but just what I have always had set and no issues.
You set the start register and then it will look from there, for example I have the first as 1025 (2001 Octal) and I have 4 registers set. I am also using the bitmapped (bitpacked?) option so the PLC has something like the following in it.
B2001.0
B2001.1
B2001.2
......
b2001.15
b2002.0
b2001.1
....
etc
So say for example I want to read b2001.1 from VB it would be GetInput(1) or B2002.0 would be GetInput(16)
Also I could set them up in ports and pins to an input, the ones above would be Port 0 pin 0 and Port0 Pin16
Outputs are the same idea
B4000.0 etc etc
and setting from VB would be
Set ModOutPut(0,1) or (0,0) depending on whether you are turning it on or off.
Likewise in Ports and pins you can set the outputs as port 0 pin 0 etc
Hood