# OpenCN detailed documentation

**URL:** <http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399>\
**Category:** OpenCN Framework\
**Created:** [August 11, 2023, 2:02am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399 "2023-08-11T02:02:19Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 15, 2023, 3:07pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/21 "2023-08-15T15:07:21Z")

</div>

@jmi  
Actually problem was with default terminal of Kubuntu which disaplayed only 8 lines and previous lines got depleted.

I used another terminal Xterm and the cat command worked.

Thanks

opencn ~ # cat micro5/micro5.hal

# Micro5 HAL file

# The threads period is in [us], contrary to the one defined for the

# Ethercat master in its xml, where it is in [ns]

## – load components –

load lcec cfg=micro5/micro5\_ec\_topology.xml -d  
load ocno axes=zbxyc # Order of axis to handle clearing - temporary solution  
load feedopt --axes=xyzbc  
load plc cfg=micro5  
load plc cfg=spindle  
load simple\_pg joint\_nr=5  
load mux name=position type=float vector\_nr=2 vector\_size=5  
load kinematic type=xyzbc params=micro5/m5\_kin\_param.txt

## – Signal creation –

# Inactive of operation

net set-mode-inactive-X ocno.axisX.set-mode-inactive =\> lcec.0.TSDXB.set-mode-inactive-0  
net set-mode-inactive-Y ocno.axisY.set-mode-inactive =\> lcec.0.TSDYC.set-mode-inactive-0  
net set-mode-inactive-Z ocno.axisZ.set-mode-inactive =\> lcec.0.TSDZS.set-mode-inactive-0  
net set-mode-inactive-B ocno.axisB.set-mode-inactive =\> lcec.0.TSDXB.set-mode-inactive-1  
net set-mode-inactive-C ocno.axisC.set-mode-inactive =\> lcec.0.TSDYC.set-mode-inactive-1  
net in-mode-inactive-X ocno.axisX.in-mode-inactive \<= lcec.0.TSDXB.in-mode-inactive-0  
net in-mode-inactive-Y ocno.axisY.in-mode-inactive \<= lcec.0.TSDYC.in-mode-inactive-0  
net in-mode-inactive-Z ocno.axisZ.in-mode-inactive \<= lcec.0.TSDZS.in-mode-inactive-0  
net in-mode-inactive-B ocno.axisB.in-mode-inactive \<= lcec.0.TSDXB.in-mode-inactive-1  
net in-mode-inactive-C ocno.axisC.in-mode-inactive \<= lcec.0.TSDYC.in-mode-inactive-1

# Spindle

net spindle-target-velocity plc.spindle.target-velocity =\> lcec.0.TSDZS.target-velocity-1  
net spindle-current-velocity plc.spindle.current-velocity \<= lcec.0.TSDZS.current-velocity-1  
net spindle-set-mode-csv plc.spindle.set-mode-csv =\> lcec.0.TSDZS.set-mode-csv-1  
net spindle-set-mode-inactive plc.spindle.set-mode-inactive =\> lcec.0.TSDZS.set-mode-inactive-1  
net spindle-in-mode-csv plc.spindle.in-mode-csv \<= lcec.0.TSDZS.in-mode-csv-1  
net spindle-in-mode-inactive plc.spindle.in-mode-inactive \<= lcec.0.TSDZS.in-mode-inactive-1

# Spindle parameter

setp plc.spindle.acceleration 5000 # Debug mode !  
#setp plc.spindle.min-velocity 8000 # TO BE SET ONECE TEST IS DONE  
setp plc.spindle.max-velocity 60000

#spindle to be linked in real machine  
net spindle-cmd-target-velocity plc.spindle.cmd-target-velocity \<= ocno.spindle.speed  
net spindle-cmd-rotate-spindle plc.spindle.cmd-rotate-spindle \<= ocno.spindle.enable

# Homing of operation

net set-hm-csp-X ocno.axisX.set-mode-homing =\> lcec.0.TSDXB.set-mode-hm-0  
net set-hm-csp-Y ocno.axisY.set-mode-homing =\> lcec.0.TSDYC.set-mode-hm-0  
net set-hm-csp-Z ocno.axisZ.set-mode-homing =\> lcec.0.TSDZS.set-mode-hm-0  
net set-hm-csp-B ocno.axisB.set-mode-homing =\> lcec.0.TSDXB.set-mode-hm-1  
net set-hm-csp-C ocno.axisC.set-mode-homing =\> lcec.0.TSDYC.set-mode-hm-1  
net in-hm-csp-X ocno.axisX.in-mode-homing \<= lcec.0.TSDXB.in-mode-hm-0  
net in-hm-csp-Y ocno.axisY.in-mode-homing \<= lcec.0.TSDYC.in-mode-hm-0  
net in-hm-csp-Z ocno.axisZ.in-mode-homing \<= lcec.0.TSDZS.in-mode-hm-0  
net in-hm-csp-B ocno.axisB.in-mode-homing \<= lcec.0.TSDXB.in-mode-hm-1  
net in-hm-csp-C ocno.axisC.in-mode-homing \<= lcec.0.TSDYC.in-mode-hm-1

# CSP of operation

net set-mode-csp-X ocno.axisX.set-mode-csp =\> lcec.0.TSDXB.set-mode-csp-0  
net set-mode-csp-Y ocno.axisY.set-mode-csp =\> lcec.0.TSDYC.set-mode-csp-0  
net set-mode-csp-Z ocno.axisZ.set-mode-csp =\> lcec.0.TSDZS.set-mode-csp-0  
net set-mode-csp-B ocno.axisB.set-mode-csp =\> lcec.0.TSDXB.set-mode-csp-1  
net set-mode-csp-C ocno.axisC.set-mode-csp =\> lcec.0.TSDYC.set-mode-csp-1  
net in-mode-csp-X ocno.axisX.in-mode-csp \<= lcec.0.TSDXB.in-mode-csp-0  
net in-mode-csp-Y ocno.axisY.in-mode-csp \<= lcec.0.TSDYC.in-mode-csp-0  
net in-mode-csp-Z ocno.axisZ.in-mode-csp \<= lcec.0.TSDZS.in-mode-csp-0  
net in-mode-csp-B ocno.axisB.in-mode-csp \<= lcec.0.TSDXB.in-mode-csp-1  
net in-mode-csp-C ocno.axisC.in-mode-csp \<= lcec.0.TSDYC.in-mode-csp-1

# Data Path

net data-selector mux.position.selector \<= ocno.datapath-sel  
net cmd-pos{XYZBC} ocno.axis{XYZBC}.target-pos =\> simple\_pg.joint{01234}.cmd-pos  
net cmd-pos{XYZBC} ocno.axis{XYZBC}.target-pos =\> mux.position.vector0.input{01234}  
net pg-data{XYZBC} mux.position.vector1.input{01234} \<= simple\_pg.joint{01234}.target-position  
net target-position-x mux.position.output0 =\> lcec.0.TSDXB.target-position-0  
net target-position-y mux.position.output1 =\> lcec.0.TSDYC.target-position-0  
net target-position-z mux.position.output2 =\> lcec.0.TSDZS.target-position-0  
net target-position-b mux.position.output3 =\> lcec.0.TSDXB.target-position-1  
net target-position-c mux.position.output4 =\> lcec.0.TSDYC.target-position-1

# Homing

net start-hm-X ocno.homing.axisX.start =\> lcec.0.TSDXB.do-homing-0  
net start-hm-Y ocno.homing.axisY.start =\> lcec.0.TSDYC.do-homing-0  
net start-hm-Z ocno.homing.axisZ.start =\> lcec.0.TSDZS.do-homing-0  
net start-hm-B ocno.homing.axisB.start =\> lcec.0.TSDXB.do-homing-1  
net start-hm-C ocno.homing.axisC.start =\> lcec.0.TSDYC.do-homing-1  
net stop-hm-X ocno.homing.axisX.stop =\> lcec.0.TSDXB.do-stop-homing-0  
net stop-hm-Y ocno.homing.axisY.stop =\> lcec.0.TSDYC.do-stop-homing-0  
net stop-hm-Z ocno.homing.axisZ.stop =\> lcec.0.TSDZS.do-stop-homing-0  
net stop-hm-B ocno.homing.axisB.stop =\> lcec.0.TSDXB.do-stop-homing-1  
net stop-hm-C ocno.homing.axisC.stop =\> lcec.0.TSDYC.do-stop-homing-1  
net homed-X ocno.homing.axisX.homed \<= lcec.0.TSDXB.homed-0  
net homed-Y ocno.homing.axisY.homed \<= lcec.0.TSDYC.homed-0  
net homed-Z ocno.homing.axisZ.homed \<= lcec.0.TSDZS.homed-0  
net homed-B ocno.homing.axisB.homed \<= lcec.0.TSDXB.homed-1  
net homed-C ocno.homing.axisC.homed \<= lcec.0.TSDYC.homed-1

# JOG

net jog-enable ocno.jog.enable =\> simple\_pg.enable  
#net pg-target-pos{XYZBC} ocno.axis{XYZBC}.target-pos =\> simple\_pg.joint{01234}.cmd-pos  
net current-pos-X lcec.0.TSDXB.current-position-0 =\> simple\_pg.joint0.current-position  
net current-pos-Y lcec.0.TSDYC.current-position-0 =\> simple\_pg.joint1.current-position  
net current-pos-Z lcec.0.TSDZS.current-position-0 =\> simple\_pg.joint2.current-position  
net current-pos-B lcec.0.TSDXB.current-position-1 =\> simple\_pg.joint3.current-position  
net current-pos-C lcec.0.TSDYC.current-position-1 =\> simple\_pg.joint4.current-position  
net jog-running-{XYZBC} ocno.jog.axis{XYZBC}.is\_running \<= simple\_pg.joint{01234}.is\_running

# OCNO - current position

net current-pos-{XYZBC} ocno.axis{XYZBC}.current-joint-pos

# OCNO machining

net spindle-current-velocity ocno.spindle.current-speed lcec.0.TSDZS.current-velocity-1

# Fault

net in-fault-X ocno.axisX.in-fault  
net in-fault-Y ocno.axisY.in-fault  
net in-fault-Z ocno.axisZ.in-fault  
net in-fault-B ocno.axisB.in-fault  
net in-fault-C ocno.axisC.in-fault

# ocno - fault reset

net fault-reset-X ocno.axisX.fault-reset =\> lcec.0.TSDXB.fault-reset-0  
net fault-reset-Y ocno.axisY.fault-reset =\> lcec.0.TSDYC.fault-reset-0  
net fault-reset-Z ocno.axisZ.fault-reset =\> lcec.0.TSDZS.fault-reset-0  
net fault-reset-B ocno.axisB.fault-reset =\> lcec.0.TSDXB.fault-reset-1  
net fault-reset-C ocno.axisC.fault-reset =\> lcec.0.TSDYC.fault-reset-1

# Quick-Stop

net quick-stop-X ocno.axisX.quick-stop =\> lcec.0.TSDXB.quick-stop-0  
net quick-stop-Y ocno.axisY.quick-stop =\> lcec.0.TSDYC.quick-stop-0  
net quick-stop-Z ocno.axisZ.quick-stop =\> lcec.0.TSDZS.quick-stop-0  
net quick-stop-B ocno.axisB.quick-stop =\> lcec.0.TSDXB.quick-stop-1  
net quick-stop-C ocno.axisC.quick-stop =\> lcec.0.TSDYC.quick-stop-1

# Simple PG

# always in ‘absolute’ position - relative position handled by ‘ocno’)

setp simple\_pg.joint0.relative-pos 0  
setp simple\_pg.joint1.relative-pos 0  
setp simple\_pg.joint2.relative-pos 0  
setp simple\_pg.joint3.relative-pos 0  
setp simple\_pg.joint4.relative-pos 0

# PLC safety and functionality of M5

net in-fault-X plc.micro5.is\_x\_in\_fault \<= lcec.0.TSDXB.in-fault-0  
net in-fault-Y plc.micro5.is\_y\_in\_fault \<= lcec.0.TSDYC.in-fault-0  
net in-fault-Z plc.micro5.is\_z\_in\_fault \<= lcec.0.TSDZS.in-fault-0  
net in-fault-S plc.micro5.is\_spindle\_in\_fault \<= lcec.0.TSDZS.in-fault-1  
net in-fault-B plc.micro5.is\_b\_in\_fault \<= lcec.0.TSDXB.in-fault-1  
net in-fault-C plc.micro5.is\_c\_in\_fault \<= lcec.0.TSDYC.in-fault-1  
net m5-EStop plc.micro5.is\_EStop\_pushed \<= lcec.0.EL1809.din-4-not  
net m5-release-break-z plc.micro5.release\_break\_z =\> lcec.0.CTEU.out0.bit-0  
net is-enabled-2 plc.micro5.is\_z\_enabled \<= lcec.0.TSDZS.enabled-0  
net is-enabled-3 plc.micro5.is\_spindle\_enabled \<= lcec.0.TSDZS.enabled-1  
net is-enabled-4 plc.micro5.is\_b\_enabled \<= lcec.0.TSDXB.enabled-1  
net is-enabled-5 plc.micro5.is\_c\_enabled \<= lcec.0.TSDYC.enabled-1  
net m5-sealing plc.micro5.b\_c\_s\_axis\_sealing =\> lcec.0.CTEU.out0.bit-1  
net m5-spindle\_cooling plc.micro5.spindle\_cooling =\> lcec.0.CTEU.out0.bit-6

# net set-mode-inactive-3 plc.micro5.spindle\_set\_mode\_inactive =\> lcec.0.TSDZS.set-mode-inactive-1

# net set-mode-csv-3 plc.micro5.spindle\_set\_mode\_csv =\> lcec.0.TSDZS.set-mode-csv-1

net m5-pull-0 plc.micro5.spindle\_pulling\_pin0 \<= lcec.0.EL1809.din-11  
net m5-pull-1 plc.micro5.spindle\_pulling\_pin1 \<= lcec.0.EL1809.din-12  
net m5-free-tool plc.micro5.free\_milling\_tool =\> lcec.0.CTEU.out0.bit-4  
net m5-cone-clean plc.micro5.cone\_cleaning =\> lcec.0.CTEU.out0.bit-5  
net m5-free-pal plc.micro5.free\_palette =\> lcec.0.CTEU.out0.bit-2  
net m5-blow-pal plc.micro5.blowing\_palette =\> lcec.0.CTEU.out0.bit-3  
net spindle-can-turn plc.micro5.spindle\_can\_turn =\> ocno.spindle.can-turn  
net spindle-temperature plc.micro5.spindle\_temperature \<= lcec.0.EL3202.chan1.temperature  
net m5-is-milling plc.micro5.is\_milling \<= ocno.machining.running

# Feedopt

net machining-finished feedopt.finished =\> ocno.machining.finished  
net machining-underrun feedopt.sample.underrun =\> ocno.machining.underrun  
net machining-ready feedopt.ready =\> ocno.machining.operation-ready  
net machining-read-one-samples feedopt.read.single \<= ocno.machining.get-one-sample  
net machining-read-samples feedopt.read.start \<= ocno.machining.read-samples  
net machining-cmd-pos-{XYZBC} feedopt.axis{XYZBC}.sample =\> ocno.machining.axis{XYZBC}.cmd-pos  
net feedopt-spindle-target-speed feedopt.spindle-target-speed =\> ocno.machining.target-spindle-speed  
net feedopt-resampling-pause feedopt.resampling.pause =\> ocno.machining.resampling-pause

#to be linked  
#net m5-cmd-free-tool plc.micro5.cmd\_free\_tool \<=  
#net m5-cmd\_free\_pal plc.micro5.cmd\_free\_palette \<=  
#net m5-cmd-enable-spindle plc.micro5.cmd\_enable\_spindle \<=  
#net m5-stop-operation plc.micro5.stop\_operation =\>

## – Parameters config --#

# lcec - modulo mode

setp lcec.0.TSDYC.modulo-1 360

## – Micro5 specific behavior –

# Machine position limits

setp ocno.axisX.limit-min -39  
setp ocno.axisX.limit-max 39  
setp ocno.axisY.limit-min -28  
setp ocno.axisY.limit-max 28  
setp ocno.axisZ.limit-min -50  
setp ocno.axisZ.limit-max 0  
setp ocno.axisB.limit-min -102 # 10 recommended from manufaccturer / (24 degree mesured143degree mesured in full range, we still use manufacturer spec  
setp ocno.axisB.limit-max 15  
setp ocno.axisC.limit-min 0  
setp ocno.axisC.limit-max 0

## – Export functions –

addf ocno.func lcec\_thread.0  
addf feedopt.update lcec\_thread.0  
addf plc.micro5 lcec\_thread.0  
addf plc.spindle lcec\_thread.0  
addf simple\_pg.func lcec\_thread.0  
addf mux.position\_func lcec\_thread.0

# – Debug mode –

# in debug mode set some default values !

setp lcec.0.EL1809.debug\_din-11 1  
setp lcec.0.EL1809.debug\_din-12 1

# – Sampler –

load sampler depth=1000 cfg=fffffffffffffffub

net target-position-x sampler.0.pin.0  
net target-position-y sampler.0.pin.1  
net target-position-z sampler.0.pin.2  
net target-position-b sampler.0.pin.3  
net target-position-c sampler.0.pin.4  
net current-pos-X sampler.0.pin.5  
net current-pos-Y sampler.0.pin.6  
net current-pos-Z sampler.0.pin.7  
net current-pos-B sampler.0.pin.8  
net current-pos-C sampler.0.pin.9

#sampler logging of error position  
net pos-error-0 lcec.0.TSDXB.position-error-0 =\> sampler.0.pin.10  
net pos-error-1 lcec.0.TSDYC.position-error-0 =\> sampler.0.pin.11  
net pos-error-2 lcec.0.TSDZS.position-error-0 =\> sampler.0.pin.12  
net pos-error-3 lcec.0.TSDXB.position-error-1 =\> sampler.0.pin.13  
net pos-error-4 lcec.0.TSDYC.position-error-1 =\> sampler.0.pin.14

net data-selector sampler.0.pin.15  
net machining-finished sampler.0.pin.16

addf sampler.0 lcec\_thread.0

## – Start operations –

start

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 15, 2023, 3:37pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/22 "2023-08-15T15:37:27Z")

</div>

Hi Nadim,

Thanks for sharing the file. Unfortunately (if I can say) it seems correct. I’ve no idea why you had an error at the boot. I’ve to debug (I will try to do it asap).

Anyway, you still can play with _OpenCN_ without it.

Regarding the terminal display issue, the cmd `resize` usually restore the print area.

J-P

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 15, 2023, 4:11pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/23 "2023-08-15T16:11:08Z")

</div>

No Problem @jmi , Thanks  
You can debug as per your time.

In the meantime I will try below tasks:

- I will redo the whole procedure on Ubuntu version because thats what i use for other work also. I will redo and then study and try the document in detail. I will also check if this same problem occurs again.
- I will also try to build and run on raspberrypi4 target
- I will comeback with the results

Can you create a seperate branch from where I can checkout and try my handson and update things?

My gitlab userid is :15429624  
I am new to gitlab but i can follow along its documentation.

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 16, 2023, 7:34am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/24 "2023-08-16T07:34:03Z")

</div>

Hi Nadim,

I will add you as developer in the _OpenCN_ repo. Regarding the branches and issue, we already have the issue #113. This issue, and its related branch, was created to follow documentation update which was not related to new features/dev.

- The branch has to be aligned with the current master

You can use this issue/branch if it is ok for you

Have a nice day  
J-P

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 16, 2023, 7:34am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/25 "2023-08-16T07:34:49Z")

</div>

I need you gitlab username. I cannot add you using the userid

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 16, 2023, 8:47am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/26 "2023-08-16T08:47:27Z")

</div>

My username is nadim4114

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 16, 2023, 11:16am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/27 "2023-08-16T11:16:35Z")

</div>

Done - you should receive an invitation

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 17, 2023, 7:02am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/28 "2023-08-17T07:02:23Z")

</div>

Thanks for adding me.  
I received an invitation.

I am using below branch to checkout a copy. Is this correct if you can confirm.

nadim@nadim-pc:~/opencn$ git checkout origin/113-documentation-update  
M agency/usr/matlab  
HEAD is now at dc31915f1e [doc] deployment: add info to install on PC internal disk

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 17, 2023, 7:19am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/29 "2023-08-17T07:19:28Z")

</div>

Yes, it is the correct branch. But I has to be aligned with the current state of `master` branch.

J-P

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 17, 2023, 11:35am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/31 "2023-08-17T11:35:29Z")

</div>

1. I will follow this procedure everytime for documentation update. [13. Development flow — OpenCN 2021.2.0 documentation](https://mecatronyx.gitlab.io/opencnc/opencn/dev_flow.html#documentation)

2. Just a quick silly question.  
The script mentioned in below userguide creates document from the updated files present in /home/nadim/opencn/doc/src ?  
[8. User guide — OpenCN 2021.2.0 documentation](https://mecatronyx.gitlab.io/opencnc/opencn/user_guide.html#documentation)

3. I have made my first commit and push to gitlab repository for testing purpose. Pls confirm if change is reflected and everything is okay?

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 18, 2023, 7:40am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/32 "2023-08-18T07:40:52Z")

</div>

Hi Nadim,

1. Yes this doc seems correct.
2. This script will generate the documentation in html (or pdf) or the src folder. All is performed locally.
3. I’ll look at the push in detail lately (no time right now), but you did not follow the doc at 1 (see below).

**Doc update flow**  
Here is a summary of the process to update the documentation.

_N.B_: This flow is valid only for activities on the doc only - no code source update !  
_N.B2_: In case of the integration of a new feature, a new branch/issue has to be created and the doc has to be integrated in this branch as well.

First the 113 branch has to be align with the master branch. It is important ! It will avoid many conflict during the merge / alignment.

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 18, 2023, 11:36am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/33 "2023-08-18T11:36:26Z")

</div>

" First the 113 branch has to be align with the master branch."

To align 113 branch to master, do you mean to create a merge request of branch 113?

Since my background is new to these kind of development tools, I am asking a lot of questions. Sorry for that.

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 18, 2023, 11:54am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/34 "2023-08-18T11:54:15Z")

</div>

No, it consists in rebasing the 113 branch on top of master branch.

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 18, 2023, 12:09pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/35 "2023-08-18T12:09:31Z")

</div>

$ git fetch --all  
$ git checkout 113-documentation-update  
$ git rebase origin/master

// Update the documentation and push the modification

$ git push --force

This is what is used as per the document.

Any thing to add or modify in these steps, please suggest.

Or if the step is okay then i go ahead and build and run openCN and start learning and documenting.

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 18, 2023, 1:04pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/36 "2023-08-18T13:04:52Z")

</div>

Yes it is correct !

it is what you have done ? sorry, It means I’ve looked at the commit to quickly !

Have a nice day  
J-P

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 18, 2023, 2:25pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/37 "2023-08-18T14:25:17Z")

</div>

No issues @jmi,

I am taking diligent steps just to make sure I do not mess up with the system.  
I will now follow the same steps to update the document. I will not hesitate to ask you guys again. 😇

Regards  
NRK

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 18, 2023, 2:38pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/38 "2023-08-18T14:38:31Z")

</div>

Thanks for your help and don’t hesitate to ask questions !

J-P

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 22, 2023, 3:35pm UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/39 "2023-08-22T15:35:12Z")

</div>

I am trying hal commands in qemu. I have taken up this topic to try things and see where document can be corrected  
some commands seem to return nothing or maybe I am doing wrong.

I tried below commands from the sample commands given in userguide.

opencn ~ # ./halcmd load loopback cfg=fsub  
hal\_systemv: waiting for child ./loopback  
hal\_connect returned with ret = 0  
hal\_systemv: OK, we can go ahead…

opencn ~ # ./halcmd load threads name1=loopback\_thread period1=20000  
hal\_systemv: waiting for child ./threads  
OpenCN: Threads component starting…  
threads\_connect returned with ret = 0  
hal\_systemv: OK, we can go ahead…

opencn ~ # ./halcmd addf loopback.0 loopback\_thread  
opencn ~ # ./halcmd show pin  
opencn ~ # ./halcmd show pin loopback  
opencn ~ # ./halcmd setp loopback.0.f\_in.0 12.3  
opencn ~ # ./halcmd show pin loopback  
opencn ~ # ./halcmd start  
opencn ~ # ./halcmd show pin  
opencn ~ # ./halcmd show comp  
opencn ~ # ./halcmd show sig  
opencn ~ # ./halcmd show param  
opencn ~ # ./halcmd show thread  
opencn ~ # ./halcmd show

Can anyone suggest whether I am doing something wrong or the commands dont work in qemu?

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [August 23, 2023, 6:39am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/40 "2023-08-23T06:39:10Z")

</div>

Hi Nadim,

No idea right now on what is going on. `halcmd` is working - we are using it most of the time…

Can you try `halcmd getp loopback.0.f_in.0` command ?

J-P

---

<div class="post-metadata">

**Author:** ![NRK](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@NRK](http://discourse.heig-vd.ch/u/NRK)\
**Post date:** [August 23, 2023, 10:13am UTC](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399/41 "2023-08-23T10:13:13Z")

</div>

I followed the procedure shown in user guide.

Only changes are

I am running x86-qemu  
I have commented below lines as suggested by you

- Comment all lines in `agency/rootfs/board/common/rootfs_overlay/root/start_opencn.sh`

Other all things i have followed same.

[Previous page](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399.md?page=1)

[Next page](http://discourse.heig-vd.ch/t/opencn-detailed-documentation/399.md?page=3)
