Yamaha RCX Series, Yamaha Robot Controller CC-Link Unit owner manual PLC program, X0F From

Page 68

4. Sample program

5

Specifications

[PLC program]

 

0

X0

X0F

 

 

 

 

 

 

 

 

 

 

 

 

[PLS

M0

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[SET

M1

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

 

[MOV

 

 

 

K2

D0

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

No. of connected modules

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[TO

H0

H1

D0

K1

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[MOV

H1401

D1

]

Station information

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[MOV

 

 

 

 

 

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H1405

D2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[T0

H0

H20

D1

K2

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[RST

M1

]

 

 

 

M9038

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

42

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[SET

Y0

]

Refresh instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

44

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[SET

M2

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

46

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[SET

Y6

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

48

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[RST

Y6

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data link start normal completion

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[RST

 

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M2

 

 

 

X7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

51

 

 

 

 

 

 

 

[FROM

H0

H668

D10

K1

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[RST

Y6

]

Data link start error completion

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[RST

M2

]

 

 

 

X0

X0F

X1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

63

 

 

 

 

 

 

 

 

 

 

 

[FROM

H0

H680

K4M4

K16

]

 

Read each data link status (SW0080)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M4

 

 

 

 

 

 

[CALL

P10

]

Station No. 1 normal

 

 

 

 

 

 

 

 

 

 

 

 

 

M4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Y20

)

Station No. 1 error

 

 

 

 

 

 

 

 

 

 

 

 

 

M8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[CALL

P20

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M8

 

 

 

 

 

 

Station No. 2 normal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Y21

)

Station No. 2 error

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P10

91

M9036

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[FEND

]

 

 

 

 

 

 

 

 

 

[FROM

H0

H0E0

K4X100

K8

]

 

 

 

92

 

 

 

 

 

 

 

 

 

 

 

 

Read station No. 1 remote input

 

X178

 

 

 

 

 

 

 

 

103

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[SET

Y100

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set emergency stop input ON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[SET

Y109

]

Set interlock input ON

 

 

X178

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[SET

Y178

]

Set initial data process compete flag ON

 

107

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[RST

Y178

]

Set initial data process complete flag OFF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5-14

Image 68
Contents Unit Page Introduction Safety Precautions Always read before starting use Precautions for designPrecautions for installation Precautions for wiringPrecautions for starting and maintenance Precautions for disposalWarranty Warranty descriptionMemo Contents Appendix TroubleshootingSpecifications Outline Memo Emulated serialization on parallel DIO FeaturesWiring saving Mechanism PLCStation No. setting switch LSB 1st digit Station No. setting switch MSB 2nd digitCommunication speed switch BPS CC-Link system cable terminalsAssignment of CC-Link compatible I/O A1SHCPUPLC Outline Outline Memo Connection Memo Confirming the CC-Link compatible module settings OperationInstalling the CC-Link compatible module Response when starting the robot controllerProcedure Saving the robot controller dataSetting the CC-Link compatible module Setting the station NoSetting the communication speed ProceduresNoise measures Mounting the ferrite coreConnecting to the CC-Link system Testing the line from the master station PLCParameter setting for CC-Link serial I/O board Parameter MeaningParameter setting for CC-Link serial I/O board Type Display MeaningPress the F Edit key Memo Communication Memo State when robot controller power is turned on When connection to CC-Link system is correctly establishedInitial data process master station PLC side Initial process for connecting to CC-Link systemInitial data process Communication with master station PLC Receiving dataTransmitting data Direct connection by emulated serialization on parallel DIO Direct connection by emulated serialization on parallel DIO Direct connection from SI n to do nDirect connection by emulated serialization on parallel D Direct connection from SO n to DI nReferring to communication data Referring to the data from the programming unitTroubleshooting Memo Items to confirm before starting up CC-Link system Confirmation details CheckMeanings of LEDs on CC-Link compatible module RUN Errl SD RDTroubleshooting Confirmation itemProgramming unit error display confirmation CC-Link compatible module LED confirmation Confirmation from master station PLC Error messages relating to CC-Link Emg.stop onMemo Specifications Memo Profile Remote registers Details of remote input/output signals Device No Signal name Details RXn0Details of remote input/output signals Details of remote input/output signals Dedicated input/output signal timing chart Initial data process for CC-Link connectionInitial servo on process after power on Servo on and emergency stopShift to emergency stop Servo on process from emergency stop statusSpecifications Auto mode changeover processProgram reset process Program execution processProgram stop process using interlock input Stopping with program interlockSample program Details of sampleBit information used Robot program data assignment Variables usedPoints used PLC data assignment X1FFRobot program 1st unit’s RCX40 2nd unit’s RCX142 Gosub *PLACEPLC program X0F FromRET From H0 Set initial data process complete flag OFF CC-Link compatible module specifications Communication speed settingMemo Appendix Memo Term definition Unit