Introduction
C3F_T40
8 192-121102 N04 June 2008
5.13 Process image...................................................................................... 303
5.13.1. Reading digital inputs (C3_Input) ...................................................................... 303
5.13.2. Write digital outputs (C3_Output) ...................................................................... 303
5.13.3. Reading/writing optional inputs/outputs........................................................... 304
5.13.3.1 C3_IOAddition_0....................................................................................... 304
5.13.3.2 C3_IOAddition_1....................................................................................... 304
5.13.3.3 C3_IOAddition_2....................................................................................... 305
5.13.4. Memorizing the signals with the trigger event (C3_TouchProbe) .................. 306
5.13.5. Integration of Parker I/Os (PIOs) ........................................................................ 309
5.13.5.1 Initializing the PIOs (PIO_Init)................................................................... 309
5.13.5.2 Reading the PIO inputs 0-15 (PIO_Inputx...y) .......................................... 310
5.13.5.3 Writing the PIO outputs 0-15 (PIO_Outputx...y) ....................................... 311
5.13.5.4 Example: Compax3 as CANopen Master with PIOs ................................ 312
5.14 Interface to C3 powerPLmC ................................................................ 314
5.14.1. Interface module "PLmC_Interface"................................................................. 315
5.14.2. Cyclic data channel for C3T30 and C3T40 ........................................................ 317
5.14.3. Example: C3 powerPLmC Program & Compax3 Program .............................. 319
5.15 IEC examples........................................................................................ 322
5.15.1. Example in CFC: Using Compax3-specific function modules and
Compax3 objects................................................................................................. 322
5.15.2. Example in CFC: Positioning 1 .......................................................................... 323
5.15.3. Example in CFC: Positioning 2 .......................................................................... 324
5.15.4. Example in CFC: Positioning with set selection .............................................. 325
5.15.5. Example in CFC: Cycle mode............................................................................. 326
5.15.6. Example in ST: Cycle mode with a Move module ............................................ 327
5.16 Profibus: Emulating the ProfiDrive profile
(C3F_ProfiDrive_Statemachine) ......................................................... 329
6. Communication ....................................................................................333
6.1 Compa3 communication variants....................................................... 333
6.1.1. PC <-> Compax3 (RS232).................................................................................... 334
6.1.2. PC <-> Compax3 (RS485).................................................................................... 335
6.1.3. PC <-> C3M device combination (USB)............................................................. 336
6.1.4. USB-RS485 Moxa Uport 1130 adapter.............................................................. 337
6.1.5. ETHERNET-RS485 NetCOM 113 adapter........................................................... 338
6.1.6. Modem Westermo TD-36 485.............................................................................. 340
6.1.7. C3 settings for RS485 two wire operation......................................................... 343
6.1.8. C3 settings for RS485 four wire operation........................................................ 344
6.2 COM port protocol ............................................................................... 345
6.2.1. RS485 setting values........................................................................................... 345
6.2.2. ASCII - record....................................................................................................... 346
6.2.3. Binary record ....................................................................................................... 347
6.3 Remote diagnosis via Modem............................................................. 350
6.3.1. Structure............................................................................................................... 350
6.3.2. Configuration of local modem 1......................................................................... 351
6.3.3. Configuration of remote modem 2..................................................................... 352
6.3.4. Recommendations for preparing the modem operation ................................. 353