Sample Code
Category | Application | Description | File |
QuickBuilder code: | |||
Motion | Motion homing with back up | a homing routine that homes a servo to an input, backs off that input and then returns to the input switch at a slower speed | MHB.zip |
Motion | Homing to an index pulse | a homing routine that homes a servo to an input, backs off that input and then returns to the input switch at a slower speed and then continues to the next Z pulse | MHZP.zip |
Comm. | Sending and receiving strings over Ethernet | program sets up a raw socket connection over Ethernet; sends and receives strings over this connection | CmStr.zip |
‘C’ Step | Programming in ‘C’ with QuickBuilder | Sample ‘C’ programming functions for string manipulation, variant, register and file access. | QB_C.zip |
Comm. | Connecting to a Mitsubishi MR-JE-_A drive | Program sets up communications between a Model 5300 Controller and a Mitsubishi MR-JE-_A drive over RS-485. | MR-JE_A.zip |
QuickStep code: |
|||
Comm. | Reading in a barcode over serial | program reads in a barcode signal from the RS-232 buffer. Zip file includes a .DSP, .SYM, and .FIG file | BAR.zip |
Legal
Sample code provided on this website or transmitted to the User or customer in anyway has been developed for training purposes to reduce the learning curve of CTC customers. These pedagogical aids are not necessarily designed for use in actual applications of CTC products. It is the Users responsibility to determine if the features of a software program are suitable for User's requirements and User must confirm that the software programs operate correctly. THIS SAMPLE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND CTC MAKES NO WARRANTIES, EXPRESS, STATUTORY OR IMPLIED, WITH RESPECT TO THIS CONTENT, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY, OR ANY OTHER WARRANTIES THAT MAY ARISE FROM USAGE OF TRADE OR COURSE OF DEALING.