RoboCop is programmed to follow three main prime directives (accompanied by a mysterious fourth), which are comparable with Isaac Asimov's "Three Laws of Robotics":
First Directive: Serve the public trust
The First Directive places RoboCop to help the civilians in any ways possible and protect them from any lethal or non-lethal harm. This places RoboCop as a police civil servant in the series and is the moral directive programmed into him. This also disables him from prosecuting, arresting or killing innocent civilians or act in any way against them unless if he is attacked by them, which then activates the Third Directive.
Second Directive: Protect the innocent
The Second Directive, translated as innocent until proven guilty, places RoboCop in a situation that although he can kill criminals, he only can kill criminals that have committed a serious crime (etc. murder) or and are trying to eliminate him, and as such, can only arrest the minor criminals. However, he can engage against them in physical (and possible lethal) combat if they physically attack him or attempt to flee.
Third Directive: Uphold the law
The Third Directive establishes RoboCop/Murphy as a police officer and as such he has to protect and serve. This directive forces him to serve as a police officer, and as such, he cannot go on strikes, for instance, and it is impossible for him to be fired or request termination of his employment. The directive also disables him from directly attacking or terminating a police officer, but he can arrest one if proven guilty. The Third Directive is specifically what prevents Murphy from killing Boddicker during a drug raid: while Boddicker had been shooting at RoboCop minutes before, he then put his gun away and tried to flee, but RoboCop caught up with him and started severely beating him (based on echoes of memory of what Boddicker did to Murphy). The badly wounded and now unarmed Boddicker begs for his life, pleads that he surrenders, and that RoboCop can't kill him because he's a police officer - which activates the Third Directive, making Robocop take him in alive back to the police precinct.
Fourth Directive: Classified
The Fourth Directive, which is programmed to be hidden from RoboCop unless it becomes obvious, renders him physically incapable of arresting or injuring any senior OCP employee: "Any attempt to arrest a senior OCP employee results in shutdown." This is Jones' contribution to RoboCop's psychological profile. Jones informs RoboCop that he is an OCP product and not an ordinary police officer. As a result, RoboCop is unable to act against the corrupt Jones until the Old Man terminates Jones's employment with the company, allowing RoboCop to act against him.[4]
https://en.wikipedia.org/wiki/RoboCop_( ... directives
------------------------------------------------
Pretty much, robosec would come to conflict with sec in rev/etc seeing as although in code red situations everyone is a valid target for lethal force under Space law they're still technically innocent until they do a direct crime (although fleeing a beating could actually be seen as resisting arresting and therefore you actually become a valid target, so the only winning move is to lay down and not resist and hope the robosecbot stops the humans killing you.)