PLC
Programm your own logic in Unity C# scripts
Last updated
Programm your own logic in Unity C# scripts
Last updated
Using a C# script is just one way to define custom logic. Please check sectioin Defining Logic
If no real PLC is connected to the model, a PLC script (based on the ControlLogic base script) can be used to control the model. This can be used for replacing missing PLC functions during the development phase or for demo purposes. The realvirtual.io Demo Model is fully controlled by PLC scripts.
This is a simple PLC-script from the Demo Model. This script is controlling the conveyor with the cans. As soon as the sensor at the end of the conveyor is high the conveyor is stopped.
PLC_CanConveyor
© 2022 in2Sight GmbH https://realvirtual.io - All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including printing, saving, photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher.