look at your other thread, the link I posted is not a tutorial but is part of a plc book. One chapter is on Function Block's. This book is based on Allen Bradley PLC's so there may be some differences when using another brand BUT for learning purposes it should offer some assistance.