Jump to content
OMRON Forums

PLC coordinate system


daves
 Share

Recommended Posts

What can change a PLC's coordinate system?

 

I have a 'command processor' PLC running and reacting to commands (from PMAC or a connected PC).

 

There are many commands handled but I just experienced a problem where the DISABLE command did not kill the motors (dangerous) because PLC10 was using CS0 even though it had been set to CS1 earlier:

 

open plc 10
switch (pmCmnd)
{
	case 0:
		break;

	case DISABLECMND:
		ddisable;
		break;
	case COORD1CMND:
		Plc[10].Ldata.Coord = 1;
		break;
}
pmCmnd = 0;

close

 

 

The COORD1CMND is issued at the start of the session and non of my code explicitly alters the CS after that. When I discovered the motors were still closed loop issuing COORD1CMND again and then DISABLECMND worked as expected.

 

I can get around this by always setting the CS before each command (we only have one anyway) or should I do &*ddisable? in script?

 

Cheers

Dave

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...